![]() |
|
Question about Jail breaking AP - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Computers (https://sinister.li/Forum-Computers) +--- Forum: Mobile & Tablets (https://sinister.li/Forum-Mobile-Tablets) +--- Thread: Question about Jail breaking AP (/Thread-Question-about-Jail-breaking-AP) |
Question about Jail breaking AP - SxTxN - 02-21-2017 Not sure if this is the correct section, but what is the point in jail breaking your AP(Android Phone). RE: Question about Jail breaking AP - sleaze - 02-21-2017 take off shitty bloatware, be able to do more shit RE: Question about Jail breaking AP - SxTxN - 02-21-2017 Ahhh I see, cheers for letting me know. RE: Question about Jail breaking AP - Bish0pQ - 02-21-2017 Basically you'll be able to customize it more and easier. Like sleaze said, less bloatware and being able to run custom versions like Cynagogen mod. RE: Question about Jail breaking AP - TheCouchPullsOutButIDont1234 - 02-24-2017 (02-21-2017, 01:21 PM)SxTxN Wrote: Not sure if this is the correct section, but what is the point in jail breaking your AP(Android Phone). Jailbreaking is a term used to describe the removal of certain restrictions put on iOS devices. Before that it was used for UNIX systems (see https://en.wikipedia.org/wiki/Chroot). A jailbreak consists mostly of modifying the fstab file that controls the read/write permissions to the system partition. The end result is that the user is able to freely access the system partition and all of the files in it with rw permissions. On Android it's called rooting. Rooting is a little different and generally not needed unless you intend on running certain applications which require root. I suggest that you do not root unless you know what you're doing (as in you've managed other Linux systems as root before). There are different kinds of root as well. Temporary root means that you'll no longer be rooted after a reboot. Permanent root means that it's persistent across system restarts. Systemless root is available too (as provided by SuperSU) and is a bit more complex. Then you have bootloader unlocks. The bootloader is deeper than the userland/kernel that you'd be modifying with rooting. Your operating system which consists of the kernel/userland and some apps is signed cryptographically. This means that the key is checked by the bootloader at boot. Rooting and running things as root user or modifying your system partition in any way on some KNOX enabled Samsung devices will invalidate this chain on trust and result in a non-operational device. A bootloader unlock will shut off the signature checking and allow a custom operating system to be installed. Really anything with a Linux kernel will do, since that what Qualcomm, HTC, and (I think) Samsung bootloaders are set to search for. For more info on availability of tools to root or unlock the bootloader of your mobile, search the model number on XDA. RE: Question about Jail breaking AP - phyrrus9 - 02-24-2017 Firstly, I want to make something clear... With this reply I'm by no means trying to be a dick or anything of the sort. Even though this thread isn't really ever going to be seen by a lot of people, it pains me to see inaccurate information like this. Maybe you already know the corrections I'm about to make, maybe not; either way, I'm making them for the purpose of accurate information only, not a flame war or a pissing match. Thanks <3 (02-24-2017, 07:10 AM)TheCouchPullsOutButIDont1234 Wrote: Jailbreaking is a term used to describe the removal of certain restrictions put on iOS devices. Before that it was used for UNIX systems (see https://en.wikipedia.org/wiki/Chroot). This one is actually spot on, minus some minor semantics. in the past (like 80's and early 90's), Jailbreaking was quite literally breaking out of a jail. The BSD jail, to be exact (yes, BSD is a derivative of UNIX). Most of the time, these jails were made up of chroots like above (your username is too long for me to type man...) said. The end result of these chroot jails was that the binary would be tricked into believing that one small folder was an entire system. The operator could be assured that one program wouldn't maliciously place some dynamic linker preload segment into an arbitrary, but commonly used binary, because if it did that it would only effect itself. There's just one huge problem with chroot jails: THEY ONLY WORK ON THE FILESYSTEM! As computers progressed and we started getting "protected memory" (if you've ever had a program segfault, or got a general protection fault in windows, that's what that is) built into our processors at the hardware level, we built real jails. Applications could only load certain types of memory segments at a time, could NEVER mark a segment as executable if it has ever been writable (the W^X check is huge in jailbreaks today), data segments had to be on the other end of the memory map (solution to row hammers), and 90% of the code that's used by a binary is now housed in a completely different memory zone, and often owned by someone else. With all of that, applications are now in what we call a 'virtual machine', 'sandbox', etc. The term 'jailbreaking' still very much represents the old term, it's just a lot more complicated now. As far as it only referring to iOS (let's just go wide and say any Apple product--or clone), that's not entirely true. Many embedded, mobile, and even full class hardware and software packages include extreme security measures. For example, My car, which is 18 years old, has a plethora of equipment onboard with the sole purpose of making sure it is IMPOSSIBLE for me to own a spare key. Believe me, I've tried to fool it, remove it, even reverse engineer it. In a way, if I ever made it work right, I'd have jailbroken my car. TL;DR - Jailbreaks historically were simple UNIX hacks, but as the jails evolved they also spread to just about everything. A jailbreak isn't necessarily an iOS/Apple thing, and for the sake of simplicity it's often used interchangeably with 'rooting' TheCouchPullsOutButIDont1234 Wrote:A jailbreak consists mostly of modifying the fstab file that controls the read/write permissions to the system partition. The end result is that the user is able to freely access the system partition and all of the files in it with rw permissions. That one's actually completely false. In fact, since iOS 7 (beta builds and forward), there are explicit kernel checks for this sort of thing. Example known rules are:
A jailbreak (iOS) actually has quite a few parts involved. It would be pointless to do a full writeup about them all (if you'd like one as its own thread, feel free to let me know), so for now I'll just give you a list of the major obstacles that must be tackled before it can even remotely be considered a jailbreak.
Sandbox patch - ARM TheCouchPullsOutButIDont1234 Wrote:On Android it's called rooting. Rooting is a little different and generally not needed unless you intend on running certain applications which require root. I suggest that you do not root unless you know what you're doing (as in you've managed other Linux systems as root before). There are different kinds of root as well. Temporary root means that you'll no longer be rooted after a reboot. Permanent root means that it's persistent across system restarts. Systemless root is available too (as provided by SuperSU) and is a bit more complex. Couldn't have said it better -- 'nuff said TheCouchPullsOutButIDont1234 Wrote:Then you have bootloader unlocks. The bootloader is deeper than the userland/kernel that you'd be modifying with rooting. Your operating system which consists of the kernel/userland and some apps is signed cryptographically. This means that the key is checked by the bootloader at boot. Rooting and running things as root user or modifying your system partition in any way on some KNOX enabled Samsung devices will invalidate this chain on trust and result in a non-operational device. A bootloader unlock will shut off the signature checking and allow a custom operating system to be installed. Really anything with a Linux kernel will do, since that what Qualcomm, HTC, and (I think) Samsung bootloaders are set to search for. Pretty close, yeah. I just want to elaborate a little on that "chain of trust" you mentioned. That one is actually really important, because it's been the reasons for unbreakable security as well as a giant hole into "unbreakable security" in its day. The chain works pretty simply. Like (above) said, everything on that device is "signed" (not really though, most of the core OS isn't, and those aftermarket apps don't have to be). What that means is the OS (still talking apps at this point) knows both who made the software, and that it hasn't been tampered with. Most of the time, these signatures are just SHA-1 hashes that have been encrypted (signed) with someone important's private key (or in the old Apple days, the manufacturer's private key. I don't know if Google does this, but it's possible). Now, if we jump down to the OS, it gets hit a little stricter. Software developers don't usually put modification restrictions on open source software, so don't try and come up with a reason about it being ripped off, or that they want to limit you or anything like that. They do it because with large markets like Android and iOS, there is a massive potential for malware. The last place you want that malware is in a core component like the OS. So, everything with any sort of authority is signed and checked periodically by usually the kernel, sometimes other processes can do this and report back or signal to another to kill it. So, if the kernel checks the OS, who checks the kernel? The kernel monitors itself, it being linux at its core means it's doing this quite well, and very strict. It would rather kill itself than let some process mess something up in there. But, you can't trust it completely, So on boot it is checked with a low level (direct hardware) process inside a RAMDISK. If it fails a signature check, a minimalistic "emulator" of the OS core is already loaded, and can attempt to recover. This is also the same place that firmware updates are applied. Who checks the ramdisk? Nobody. I kid you not, nobody. In the early days, companies thought people wouldn't ever figure this one out...we did. So, their solution was to encrypt the ramdisk with a hardware key. What this means, is that Google makes the low level ramdisk, and then they just encrypt the entire thing with their special in house private key (most use different keys for different parts of the system). Burned onto the SoC of the device, is Google's public key, so when the device boots up, it loads the ramdisk into memory, then decrypts it with its burned-in key. This will never fail, but if you've tampered with it AT ALL, it won't be the right data, and you'll end up with a seemingly bricked device. So wait...wasn't the bootloader supposed to do something? Of course, it's the job of the bootloader to transition the device, setup memory protection zones, load the ramdisk, and give it the info it needs to kick off the kernel. All this 'unlocked bootlader' stuff really is, is storing the ramdisk unencrypted, and just loading it and going off like it doesn't matter. In a pure sense, this is BROKEN, but you'll do what you want and nobody's going to stop you. TheCouchPullsOutButIDont1234 Wrote:For more info on availability of tools to root or unlock the bootloader of your mobile, search the model number on XDA. I've got to add some critical comments on that one... XDA is a good place if you've got a common problem, because it's likely the answer is there (probably 400 times), and you might even get some kickass tutorials on how to fix it. However, if you're not exactly a wizard, be careful. XDA has one of the worst memberbases out there if you're looking at something that might get some people mixed up. Avoid the pissing competitions, it's just not worth it. If you've got real troubles, or you want to learn a lot more than you will ever need or want to know, jump on IRC. Freenode has a few VERY active channels with extremely talented people who literally have nothing better to do than help newcommers and tinkerers with their struggles. RE: Question about Jail breaking AP - TheCouchPullsOutButIDont1234 - 02-26-2017 (02-24-2017, 09:21 AM)phyrrus9 Wrote: Firstly, I want to make something clear... With this reply I'm by no means trying to be a dick or anything of the sort. Even though this thread isn't really ever going to be seen by a lot of people, it pains me to see inaccurate information like this. Maybe you already know the corrections I'm about to make, maybe not; either way, I'm making them for the purpose of accurate information only, not a flame war or a pissing match. Thanks <3 Quote: Jailbreaks historically were simple UNIX hacks, but as the jails evolved they also spread to just about everything. A jailbreak isn't necessarily an iOS/Apple thing, and for the sake of simplicity it's often used interchangeably with 'rooting' I usually don't hear people use those terms interchangeably. Quote:That one's actually completely false. In fact, since iOS 7 (beta builds and forward), there are explicit kernel checks for this sort of thing. Thanks for the correction then. I haven't worked with any iOS devices newer than an iPhone 3GS. What I said was still true of much old iOS versions, specifically iOS 4 and 5. Quote:I just want to elaborate a little on that "chain of trust" I'm very familiar with the chain of trust on Android devices. I've been working on a bootloader unlock for the US AT&T Galaxy Note 5. Quote:I've got to add some critical comments on that one... XDA is a good place if you've got a common problem, because it's likely the answer is there (probably 400 times), and you might even get some kickass tutorials on how to fix it. However, if you're not exactly a wizard, be careful. XDA has one of the worst memberbases out there if you're looking at something that might get some people mixed up Hmmm... I find this a little insulting to be honest. There are a lot of people on XDA who contribute great things to that community. It's one of the best places to get things like bootloader unlock or rooting methods on some lesser known devices. There are also ports of stuff like Sailfish OS that are hard to find any info about elsewhere. I didn't need the information you've provided, but it's good to see other users who know about these things. RE: Question about Jail breaking AP - Blink - 02-26-2017 (02-24-2017, 09:21 AM)phyrrus9 Wrote: Firstly, I want to make something clear... Dude.... This could've made up an entire thread. RE: Question about Jail breaking AP - phyrrus9 - 02-26-2017 (02-26-2017, 07:48 AM)Ender Wrote:(02-24-2017, 09:21 AM)phyrrus9 Wrote: Firstly, I want to make something clear... Would you expect anything less from me? |