Rooting & Flashing Android Phones

Total Page:16

File Type:pdf, Size:1020Kb

Rooting & Flashing Android Phones Rooting & Flashing Android Phones By Louis Le What does rooting mean? ● Android is a version of Linux ● Makes you superuser of phone What does flashing mean? ● Installing a ROM onto phone ● ROM: file with executable of an Android OS and related apps Cons of Rooting ● Voids phone manufacturer’s warranty ● Possibility of “bricking” phone ● Makes phone more vulnerable to viruses ● Can be illegal depending on where in the US you live according to the Digital Millennium Copyright Act (DMCA) Pros of Rooting ● Remove bloatware ● Flash custom ROMs ● Apps ● Overclocking/saving battery ● Custom Kernels ● Mobile tethering for free Steps for Rooting 1) Unlocking bootloader - Opens the door to the internal memory of the device to be written on to. a) This allows you to flash images onto the main partitions of the phone. 2) Installing custom recovery - overwrite stock Android recovery a) Allows for creating/restoring backups b) Flash ROMs 3) Gaining Root Access Prerequisite Part ● Download: ○ ADB (Android Debug Bridge): lets you communicate with android device ○ Fastboot - tool/protocol used to modify file system images ● Make sure phone is charged and PC is plugged in ● Backup! ● USB Debugging - establishes connection between Android phone and Android SDK ● OEM (Original Equipment Manufacturer) Unlocking - gives option to unlock bootloader ● Download TWRP (Team Win Recovery Project) and Magisk Fastboot Part I. Reboot phone into fastboot mode (2 methods) II. “fastboot devices” III. “fastboot oem unlock” IV. Place Magisk on Device Internal memory V. “fastboot flash recovery (file name).img” VI. Reboot phone in recovery mode (2 methods) A. “fastboot boot recovery.img” TWRP Part I. Install Magisk to root phone II. Reboot (but wait!) Flashing Custom ROM 1. Wipe -> Format Data 2. Advance Wipe -> Cache, System 3. “adb push filename.zip /sdcard/” 4. Install .zip package 5. Reboot -> System ● Guide I used: https://forums.oneplus.com/threads/oneplus-5t-unlock-bootloader-flash-twrp-r oot-nandroid-efs.685403/ ● Custom ROM I installed: https://lineageos.org/ .
Recommended publications
  • Android (Operating System) 1 Android (Operating System)
    Android (operating system) 1 Android (operating system) Android Home screen displayed by Samsung Nexus S with Google running Android 2.3 "Gingerbread" Company / developer Google Inc., Open Handset Alliance [1] Programmed in C (core), C++ (some third-party libraries), Java (UI) Working state Current [2] Source model Free and open source software (3.0 is currently in closed development) Initial release 21 October 2008 Latest stable release Tablets: [3] 3.0.1 (Honeycomb) Phones: [3] 2.3.3 (Gingerbread) / 24 February 2011 [4] Supported platforms ARM, MIPS, Power, x86 Kernel type Monolithic, modified Linux kernel Default user interface Graphical [5] License Apache 2.0, Linux kernel patches are under GPL v2 Official website [www.android.com www.android.com] Android is a software stack for mobile devices that includes an operating system, middleware and key applications.[6] [7] Google Inc. purchased the initial developer of the software, Android Inc., in 2005.[8] Android's mobile operating system is based on a modified version of the Linux kernel. Google and other members of the Open Handset Alliance collaborated on Android's development and release.[9] [10] The Android Open Source Project (AOSP) is tasked with the maintenance and further development of Android.[11] The Android operating system is the world's best-selling Smartphone platform.[12] [13] Android has a large community of developers writing applications ("apps") that extend the functionality of the devices. There are currently over 150,000 apps available for Android.[14] [15] Android Market is the online app store run by Google, though apps can also be downloaded from third-party sites.
    [Show full text]
  • 2019 China Military Power Report
    OFFICE OF THE SECRETARY OF DEFENSE Annual Report to Congress: Military and Security Developments Involving the People’s Republic of China ANNUAL REPORT TO CONGRESS Military and Security Developments Involving the People’s Republic of China 2019 Office of the Secretary of Defense Preparation of this report cost the Department of Defense a total of approximately $181,000 in Fiscal Years 2018-2019. This includes $12,000 in expenses and $169,000 in DoD labor. Generated on 2019May02 RefID: E-1F4B924 OFFICE OF THE SECRETARY OF DEFENSE Annual Report to Congress: Military and Security Developments Involving the People’s Republic of China OFFICE OF THE SECRETARY OF DEFENSE Annual Report to Congress: Military and Security Developments Involving the People’s Republic of China Annual Report to Congress: Military and Security Developments Involving the People’s Republic of China 2019 A Report to Congress Pursuant to the National Defense Authorization Act for Fiscal Year 2000, as Amended Section 1260, “Annual Report on Military and Security Developments Involving the People’s Republic of China,” of the National Defense Authorization Act for Fiscal Year 2019, Public Law 115-232, which amends the National Defense Authorization Act for Fiscal Year 2000, Section 1202, Public Law 106-65, provides that the Secretary of Defense shall submit a report “in both classified and unclassified form, on military and security developments involving the People’s Republic of China. The report shall address the current and probable future course of military-technological development of the People’s Liberation Army and the tenets and probable development of Chinese security strategy and military strategy, and of the military organizations and operational concepts supporting such development over the next 20 years.
    [Show full text]
  • Ah! Universal Android Rooting Is Back
    AH! UNIVERSAL ANDROID ROOTING IS BACK Wen `Memeda` Xu @K33nTeam ABOUT ME Wen Xu a.k.a Memeda @antlr7 • Security research intern at KeenTeam • Android Roo6ng • Soware exploita6on • Senior student at Shanghai Jiao Tong University • Member of LoCCS • Vice-captain of CTF team 0ops • Rank 2rd in the world on CTFTIME AGENDA • Present Situa6on of Android Roo6ng • Awesome Bug (CVE-2015-3636) • Fuzzing • Analysis • Awesome Exploita6on Techniques • Object Re-filling in kernel UAF • Kernel Code Execu@on • Targe@ng 64bit Devices • Future PART I Present Situation PRESENT SITUATION Root for what? • Goal • uid=0(root) gid=0(root) groups=0(root) • Kernel arbitrary read/write • Cleaning • SELinux • … PRESENT SITUATION • SoC (Driver) • Missing argument sani6Za6on (ioctl/mmap) • Qualcomm camera drivers bug CVE-2014-4321, CVE-2014-4324 CVE-2014-0975, CVE-2014-0976 • TOCTTOU • Direct dereference in user space CVE-2014-8299 • Chip by chip A BIG DEAL • Universal root soluon • Universally applied bug • Confronng Linux kernel • Universally applied exploita6on techniques • One exploit for hundreds of thousands of devices • Adaptability (Hardcode) • User-friendly (Stability) • COMING BACK AGAIN! PART II Bug Hunting FUZZING Open source kernel syscall fuzzer • Trinity • hps://github.com/kernelslacker/trinity • Scalability • Ported to ARM Linux FUZZING Let’s take a look at our log when we wake up ;) • Crical paging fault at 0x200200?!! SK: PING SOCKET OBJECT IN KERNEL user_sock_fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); 2 3 1 LIST_POISON2 == 0X200200 ping_unhash
    [Show full text]
  • Satisfy That Android Sweet Tooth
    IBM Security Thought Leadership White Paper Satisfy that Android sweet tooth Do Android’s dessert-named updates improve device and data security enough to work for the enterprise? Satisfy that Android sweet tooth Android is ready for the enterprise. Is your continues to grow. The wide variety of Android devices enterprise ready for Android? available means that they are often a good fit for corporate- owned device programs. For example, many field-based employees need rugged Android devices built to stand up to Introduction dust, shock, vibration, rain, humidity, solar radiation, altitude, Android has long ruled the consumer market. Now, the latest and temperature extremes. Others want Android devices with security advancements from Google and device manufacturers, data capture features ideal for inventory control and warehouse and support for Android by leading EMM solution providers, operations. are expanding its presence in the enterprise. To help ensure security and compliance with industry standards and This growth comes with some unintended consequences, as government regulations, enterprises need a way to protect well as important considerations for IT. Companies are and manage the wide range of available devices, versions, and allowing employees to use their own preferred or industry- idiosyncrasies of the world’s most popular mobile operating specific devices, but IT must address the very real concerns of system. protecting corporate data and providing standardized management. It’s not a one-solution-fits-all situation. IT needs to examine its device and application landscape and decide what security and The most popular mobile platform in the world also has a management capabilities are essential in a customized volatile security record;2 however, Android’s recent, sweetly- enterprise mobility strategy.
    [Show full text]
  • On Root Detection Strategies for Android Devices
    On Root Detection Strategies for Android Devices Raphael Bialon Department of Computer Science, Heinrich-Heine-University Düsseldorf, Germany [email protected] Abstract—The Android operating system runs on the majority they are executed on and the confidentiality of communication of smartphones nowadays. Its success is driven by its availability channels used. to a variety of smartphone hardware vendors on the one hand, This can directly contradict with users enjoying the cus- and the customization possibilities given to its users on the other hand. While other big smartphone operating systems restrict user tomizability of their devices, as one popular method to enable configuration to a given set of functionality, Android users can broad control over ones’ device is the act of gaining elevated leverage the whole potential of their devices. This high degree privileges through a process called rooting. of customization enabled by a process called rooting, where the As our main contribution we propose a method for remote users escalate their privileges to those of the operating system, rooting detection in wireless tethering networks provided by introduces security, data integrity and privacy concerns. Several rooting detection mechanisms for Android devices already exist, an Android device. Such networks define a special case of aimed at different levels of detection. This paper introduces wireless networks, as all communication is routed over the further strategies derived from the Linux ecosystem and outlines device offering the hotspot, and can thus be manipulated by their usage on the Android platform. In addition, we present said device. One example for extensive tethering hotspot usage a novel remote rooting detection approach aimed at trust and and a matching use case for this remote rooting detection is integrity checks between devices in wireless networks.
    [Show full text]
  • Agchain: a Blockchain-Based Gateway for Permanent, Distributed, and Secure App Delegation from Existing Mobile App Markets
    AGChain: A Blockchain-based Gateway for Permanent, Distributed, and Secure App Delegation from Existing Mobile App Markets Mengjie Chen Daoyuan Wu∗ The Chinese University of Hong Kong The Chinese University of Hong Kong [email protected] [email protected] Xiao Yi Jianliang Xu The Chinese University of Hong Kong Hong Kong Baptist University [email protected] [email protected] ABSTRACT policies and delist the apps as they wish. For example, Mobile app markets are emerging with the popularity of 13.7% (1,146) of the 8,359 popular apps we measured smartphones. However, they fall short in several aspects, in late 2018 have been delisted (by either the market including no transparent app listing, no world-wide app ac- or developers themselves) after one year in late 2019. cess, and even insecure app downloading. To address these P2: No world-wide and even censored access. Secondly, problems, we propose a novel blockchain-based gateway, many apps on Google Play and Apple Store are avail- AGChain, to bridge end users and app markets so that ex- able only in certain countries. Moreover, Google Play isting app markets could still provide services while users itself is being censored in some regions, causing no enjoy permanent, distributed, and secure app delegation from easy app access for the users in those affected areas. AGChain. To this end, we identify two previously underesti- P3: No enough security guarantee. Thirdly, we find that a mated challenges and propose mechanisms to significantly significant portion of third-party Android app markets reduce gas costs in our smart contract and make IPFS (Inter- do not provide secure app downloading.
    [Show full text]
  • Android Malware Detection Via (Somewhat) Robust Irreversible Feature Transformations
    This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/TIFS.2020.2975932, IEEE Transactions on Information Forensics and Security IEEE TRANSACTIONS ON INFORMATION FORENSICS AND SECURITY 1 Android Malware Detection via (Somewhat) Robust Irreversible Feature Transformations Qian Han1, V.S. Subrahmanian1 and Yanhai Xiong1 1Department of Computer Science and the Institute for Security Technology and Society Dartmouth College, Hanover, NH 03755, USA As the most widely used OS on earth, Android is heavily targeted by malicious hackers. Though much work has been done on detecting Android malware, hackers are becoming increasingly adept at evading ML classifiers. We develop FARM, a Feature transformation based AndRoid Malware detector. FARM takes well-known features for Android malware detection and introduces three new types of feature transformations that transform these features irreversibly into a new feature domain. We first test FARM on 6 Android classification problems separating goodware and “other malware” from 3 classes of malware: rooting malware, spyware, and banking trojans. We show that FARM beats standard baselines when no attacks occur. Though we cannot guess all possible attacks that an adversary might use, we propose three realistic attacks on FARM and show that FARM is very robust to these attacks in all classification problems. Additionally, FARM has automatically identified two malware samples which were not previously classified as rooting malware by any of the 61 anti-viruses on VirusTotal. These samples were reported to Google’s Android Security Team who subsequently confirmed our findings.
    [Show full text]
  • Android Device Rooting Lab
    SEED Labs 1 Android Device Rooting Lab Copyright c 2015 - 2016 Wenliang Du, Syracuse University. The development of this document was partially funded by the National Science Foundation under Award No. 1303306 and 1318814. This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License. A human-readable summary of (and not a substitute for) the license is the following: You are free to copy and redistribute the material in any medium or format. You must give appropriate credit. If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original. You may not use the material for commercial purposes. 1 Overview Android devices do not allow their owners to have the root privilege on the device. This is fine for normal customers, but for users who want to make deep customizations on their devices, this is too restrictive. There are ways to overcome these restrictions, most of which require the root privilege on the device. The process of gaining the root device on Android devices is called rooting. Being able to root Android devices is a very useful skill for security experts. The objective of this lab is two-fold. First, through this lab, students will get familiar with the process of device rooting and understand why certain steps are needed. Many people can root Android devices, but not many people fully understand why things have to be done in a particular way. Second, the entire rooting mechanism involves many pieces of knowledge about the Android system and operating system in general, so it serves as a great vehicle for students to gain such in-depth system knowledge.
    [Show full text]
  • Market and Development Trends, Critical Evaluation of Proprietary Markets (Apple, Google, Microsoft, Nokia)
    Market and Development Trends, Critical Evaluation of Proprietary Markets (Apple, Google, Microsoft, Nokia) Institution Vienna University of Economics and Business Institute for Management Information Systems Course IS Projektseminar, 4289 ao.Univ.Prof. Mag. Dr. Rony G. Flatscher Author Michael Fellner, 1990-12-24 h1051887 2014-06-20 Contents 1 Introduction ............................................................................................................... 1 2 Smartphone Market ................................................................................................ 2 2.1 Hardware Environment ...................................................................................................... 2 2.1.1 Smartphone Producers ..................................................................................................... 2 2.1.2 Mobile Network Operators ............................................................................................... 5 2.2 Mobile Operating Systems ............................................................................................... 8 2.2.1 OS Development Companies ........................................................................................... 8 2.2.2 Android, iOS, Windows Phone ...................................................................................... 10 2.2.3 Alternatives ....................................................................................................................... 11 3 Proprietary Licensing .........................................................................................
    [Show full text]
  • MIDDLETOWN Treats
    Compulsory Busing Rejected by Goy* Hughei SEE STORY BELOW Weather Clouding up this afternoon, high HOME in mid S6s. Chanc* of few show- THEDAW tri tonight, low in mid 4fc. Be- Red Bank, Freehold 7 coming fair tomorrow, Ugh In FINAL •' f Hi. Sunday's oatlock, mostly sun- ( Long Bwmdr J ny and MONMOUTH COUNTY'S HOME NEWSPAPER FOR 89 YEARS DIAL 741-0010 .-..':. i VOL 90, NO. 87 RED BANK, N. J., FRIDAY, OCTOBER 27, 1967 10c PER COPY PAGE \ Garrison Regrets On Mideast Peace Proposal Yule Gifts Letter U.N. Accord Nearing FREEHOLD — Monmouth County Super- "As a member of the Board of Free- intendent of Schools Earl B. Garrison yes- holders," he concluded, "I humbly apologize UNITED NATIONS, N. Y. or withdrawal of Israeli troops council. He based this on the be- to 90 along the 107-mile Suez Ca- in Increasing the U.N. observer terday mailed out apologies to county busi- to our businessmen and the public." (AP) — A drafting team of the rom land they seized from lief that the Soviet Union, France nal and equip them with boats force if the Egyptian government also agrees. nessmen concerning a misinterpretation in Freeholder Director Joseph C. Irwin also U.N. Security Council was re- Egypt, Jordan and Syria in the and Bulgaria would go along with and helicopters. an earlier letter1, which solicited gifts for a said he did not favor this, adding that he ported near agreement today on jne war. the group thus making- a major- Although Tuesday's artillery One. Israeli source at the United 'county employes' annual Christmas party.
    [Show full text]
  • Kindle Fire Manual Root 6.3.2
    Kindle Fire Manual Root 6.3.2 How to root any Kindle Fire HDX on any version or any Android device tablet or easy to go. Keep your Amazon Kindle Fire working in the best of its abilities with the latest Manually download a Kindle Fire software update and transfer it to your Kindle. 2 Rooting Kindle Fire is very strict on the system version. This rooting tutorial is for the latest 6.3.x (6.3.1 and 6.3.2). It may be not suitable for the older version. Cyanogen Team * AOKP Team * Paranoid Android * SlimRoms * RootBox 5887 · 5900mAh · 6*ART · 6.0.3.3 · 6.0.x · 6.09.401.11 · 6.11.841.9 · 6.3.2 · 6.3.3 · 6.4. Kindle · Kindlekindlefire · Kindly · King · Kingzone · KitKat · kitkate · KK4.4.4 Mania · Mansion · manta · mantra · Manual · Manually · manufacturer · many. Sup this is how to root amazon kindle fire 1st gen its easy requires no computer just your. There is a table in the back of the manual (which is not provided in the box although it is available on line, but since it is apparently compiled by The available firmware file was version 6.3.2. Make sure the stick is formatted FAT32 and the update file is in the root directory. Amazon Kindle Fire HDX 8.9 Tablet Review. Kindle Fire Manual Root 6.3.2 Read/Download The primary reason that I bought Amazon Kindle Fire ~ the ability to install custom Do I just follow these instructions in the video? And all Is it possible to root my 6.3.2 version…… because I can only find insrtuctions for 6.3 or 6.3.1 versions.
    [Show full text]
  • Security Issues in Android Custom Roms
    Security Issues in Android Custom ROMs HTML Version Anant Shrivastava http://anantshri.info Contents Abstract................................................................................................................................................... 3 Introduction to Android ........................................................................................................................... 3 What is Android ROM .............................................................................................................................. 3 Types of ROM .......................................................................................................................................... 4 Advantages of custom ROM’s .................................................................................................................. 5 How to obtain custom ROM’s .................................................................................................................. 5 How are they created .............................................................................................................................. 5 Why do we need a security review .......................................................................................................... 6 Practices under Scrutiny .......................................................................................................................... 6 USB Debugging enabled......................................................................................................................
    [Show full text]