Related
Running the Android Compatibility Test Suite on TF101
Background: what CTS is
The Android Compatibility Test Suite is an automated test harness which tests one or more devices to ensure that they offer a fully-compliant running environment for 3rd-party applications.
Passing these tests is required to use the Android brand name for retail devices and it's also the basic prerequisite for acquiring a Google Play license for OEMs.
Background/2: what CTS isn't
As of the current CDD (Compatibility Definition Document) the CTS still doesn't enforce stability or performance requirements for devices, even though some of its tests are taxing enough for the device to expose subtle problems. Some performance tests are nevertheless included, but they're not run by the main CTS plan, nor are they part of the current CDD.
Background/3: why it's important for TF101 users
Given the way the CTS stresses the system, it is useful as a standardised testing procedure for some of the problems some users are currently experiencing with ICS on TF101. It also can help ensuring that the device works as intended with (most) 3rd-party applications straight out-of-the-box.
Requirements: host
The host should be a Linux-based workstation with the Java 6 JDK installed (either Oracle's or OpenJDK - IBM JDK or GNU gcj are not supported, while Oracle/OpenJDK JDK 7 are untested), a fully working installation of the Android SDK and about 3 or 4 GB of disk space available for downloaded media files.
Test results are best viewed with a recent version of Firefox, otherwise you can post-process them into an HTML file using an XSLT 2.0 engine (tested with Saxon).
Requirements: target device
The target device should be a completely stock and unrooted TF101 running 9.2.1.24. It is possible to run the CTS on custom roms, but the tests assume that the device is running a user build (not eng, not even userdebug) in secure mode. YMMV, expect unpredicted failures.
Required files
You're going to need the following files from the CTS downloads page:
Android 4.0.3 R2 Compatibility Test Suite (CTS)
CTS Media 1.0
The following files are optional:
Compatibility Test Suite (CTS) User Manual (if you want more information about the test harness)
Android 4.0.3 R1 CTS Verifier (used to perform user-assisted tests - I didn't run this yet, if you feel brave go ahead and post the procedure you used)
You may also need a log collecting application, even though the CTS should be capable of collecting device logs on its own (it didn't work for me). LogDog (if you have it) is strongly recommended.
Host-side setup
Download the required files and unzip them into a folder of your choice, then change the first line of media/copy_media.sh from:
Code:
#!/bin/sh
to:
Code:
#!/bin/bash
so that the script runs successfully on Debian-based systems (the script is full of bashisms which make dash complain and exit with multiple errors).
Ensure the user you'll be running CTS under has the proper privileges to run adb.
Device setup
First and foremost: perform a full Factory Data Reset (either through the Settings menu or using the VolDown+Power chord at boot time and selecting "Wipe Data").
As soon as the system boots after the wipe, perform the first run wizard selecting English (US) as the system language, connect the device to a wireless network, do not add any Google account (yet), and then reboot the device again to regain access to the system bar widgets (known 9.2.1.24 bug).
Once the system is back up, open Settings and perform the following actions:
disable Quick Settings (ASUS customized setting → ensure Use ASUS Quick Setting is unchecked)
disable System bar lock (ASUS customized setting → System bar lock → ensure Enable system bar lock is unchecked)
disable ASUS Sync (Accounts & sync → ensure Launch ASUS Sync is unchecked)
disable the internal GPS to save battery (Location services → ensure GPS satellites is unchecked)
deactivate all screen locks (Security → Screen lock → None)
temporarily enable Unknown sources (Security → ensure Unknown sources is checked)
under Language & input, ensure that the default input method is Android Keyboard
enable USB debugging (Developer options (dismiss the nag dialog) → ensure USB debugging is checked)
enable Allow mock locations (Developer options (dismiss the nag dialog) → ensure Allow mock locations is checked)
Now go back to Accounts & sync, turn off synchronization and add the Google Account you normally use for Google Play, but don't restore anything, nor accept to synchronize anything - you're going to need this just to install WakeLock.
Close the settings, open Google Play Store, go to its settings and deactivate automatic updates and the infamous auto-add for widgets, then install WakeLock.
Now go back again to Settings → Accounts & sync and nuke the account you just set up.
At this point, you're ready to upload CTS test files, so connect the device via USB to your host, disconnect any other Android device (emulators included!), ensure adb is on your PATH and then run the following commands from the directory where you unpacked the CTS archives:
Code:
cd media
./copy_media.sh all
This will upload the CTS media files (Big Buck Bunny) on the device, it will take a bit of time.
When it's done, you have to install the instrumentation apks:
Code:
cd ..
adb install android-cts/repository/testcases/CtsDelegatingAccessibilityService.apk
adb install android-cts/repository/testcases/CtsDeviceAdmin.apk
Now back on the device, open Settings again and perform the following actions:
enable Accessibility → Delegating Accessibility Service
go to Security → Device administrators → check all android.deviceadmin.cts.* administrators
This is a good time to install LogDog and reboot the system if you wish.
After that, go back to Security and ensure that Unknown sources is unchecked.
Unplug the device from USB and charge it fully.
After the device is charged, plug it back to the host, go to Settings → Developer options (again, dismiss the nag dialog) → ensure Stay awake is checked even though it won't work.
Launch WakeLock, select FULL_WAKE_LOCK as lock type, deselect "Show notification?", select "Start on boot?" and then "Acquire lock".
>>> Press the Home button to go back to the home screen.
Congratulations, you're ready to start the test harness.
Running CTS
On the host, run android-cts/tools/cts-tradefed. It will detect the device and print its android device id, then wait for a command.
To start the full CTS suite, issue run cts --plan CTS. It will take several hours and the battery will barely last for the entire duration. DO NOT INTERACT WITH THE DEVICE IN ANY WAY WHILE THE TESTS ARE RUNNING!.
After the test is finished, just type exit to terminate the test harness utility. Test results will be in android-cts/repository/results/<start time>/testResult.xml, open it with Firefox to see them or process them with saxon-xslt to produce an html file.
If you were running LogDog during the tests, archive the logs now and transfer the log archive to the host.
Post-run caveats
Wipe the device to ensure that any leftover is cleared. If you wish to run the tests again, restart from the "Device setup" step.
reserved for future notes
Thanks for the in-depth guide, very interesting!
Hi all,
imagine I run CTS and 15 tests fail. Can I run only those 15 tests and not the hole CTS?
Thanks!
GnobarEl said:
imagine I run CTS and 15 tests fail. Can I run only those 15 tests and not the hole CTS?
Click to expand...
Click to collapse
IIRC there is a way to tell tradefed to run a specific test, but I don't have the CTS documentation and tradefed itself ready at hand.
Try issuing 'help' at tradefed's prompt, it should provide with the necessary syntax to run a single test instead of a full-blown test plan.
Hi,
you can do something like "add --derivedplan -result fail" and run only failed tests. The problem is that creats another report, and not update the first report.
I wanted to have only one report in the end.
thanks for your reply.
This thread will always be a Work In Progress. Please be patient, as we receive new development it will be posted here. Thank you very much!
Do subscribe to this thread to get notified on any new updates.
If you own a G3, please proceed to this thread instead: http://forum.xda-developers.com/lg-g3/general/guide-complete-tutorial-to-root-flash-t3098959
Own a V10? Proceed to this thread: http://forum.xda-developers.com/lg-v10/general/wip-complete-guide-to-v10-t3217373
First things first, this guide is made mainly for our great LG G4 D815. Some steps may or may not work for other phones...
Please note that the results of the following methods may vary. I would advice you don't do this on a daily driver or corporate phone.
Also note that these steps WILL VOID YOUR WARRANTY. PROCEED AT YOUR OWN RISK.
For increased chances of these working, update your KDZ to Lollipop first using OTA or Flash Tool.
If you don’t know what rooting, flashing and blah blah blah means, this probably isn’t the thread for you.
I do not own much of this stuff, credit really does go to the folks stated below. Do give them a shoutout!
Enjoy!
Complete guide to all things G4:
NOTE: The chapters are in chronological order, meaning everything after Chapter 2 assumes you already have root and unlock.
---------------------------------------------------------------------------------------------------------------------------------
CHAPTER 0: TERMINOLOGY (in my own words)
- Terms
- Tidbit
(To be honest, if you need to even look at this, this thread isn't for you.)
- Root: Gaining full administrative control of your device. "Jailbreaking" in terms of Android.
- ROM: The customized operating system that your Android runs on.
- Kernel: The thingy that links software and hardware
- Radio: The thingy that sends and receives messages, calls and data.
- Flash: Installing a zipped file in Recovery Mode
- Recovery: The software that allows tweaking and flashing, and other weird stuff that will destroy your phone.
- Fastboot: The thingy that allows recovery mode to happen.
- Brick: The term says it all.
- Bootloader: Quite literal; loads the phone for bootup.
- Nandroid backup: A backup-ed image of your current system
- ADB: Android Debug Bridge; some command line tool that sends information from and to the phone to, and from the computer
- CWM: ClockWorkMod; a recovery system
- XDA: The holy website that is full of weird stuff that makes your phone wayyyy better.
Now let's paint a picture:
Imagine you are your Android phone.
Before "rooting", you are trapped in jail.
Upon "rooting and unlocking", you are released from jail.
You go to a shopping mall named "XDA".
You find a credit card lying on the floor from the company "Recovery". On the back, it says there is no passcode required, and there is a infinite amount of money inside.
You enter a store and get a sweatshirt with the word "ROM" on it.
You didn't buy the shirt, the shirt just happens to be free, but still requires you to swipe your credit card anyways.
You keep the receipt as a "backup", just in case the shirt spoils.
Just then, you get greedy and get all the badges in the store.
Stupidly, you pin all the badges on your shirt, turning it as heavy as a "brick".
Then, the shirt rips, unable to put (it rhymes with boot) it back together again.
Luckily you still have the receipt to return the shirt, and return back to your good old disgusting shirt.
---------------------------------------------------------
CHAPTER 1: PREREQUISITES
- The newest LG drivers are installed on your computer
- A proper and working Wi-Fi network
- Enable Developer Options
- Enable USB Debugging
- Ensure G4 is charged to at least 50%
- Original and genuine LG G4 in-box USB cable
- Backup all files!
---------------------------------------------------------
CHAPTER 2: ESSENTIALS
- Backup
- Unlock
- TWRP
- Flashing
- Restoring Backup
BACKUP:
Titanium Backup Method:
Use “Titanium Backup” batch backup
1. Menu -> Batch
2. Run -> Backup user apps + system data
OR:
Manual Non-Root Method:
- Messages: “SMS Backup & Restore”
- Contacts: should be synced with the cloud, if not: Export to SIM card or SD card
- Calendar: should be synced with the cloud
- Notes: use “Google Keep”, it will be synced with the cloud
- User Dictionary: “User Dictionary Backup”
- Call Logs: “Call Logs Backup & Restore”
- Launcher (assuming you use Nova Launcher): Settings -> Backup & import settings -> Restore or manage backups
- Apps: “Helium” or any other app
- Nandroid Backup
store all backups in external SD card or transfer to your computer
UNLOCK BOOTLOADER (official!):
http://developer.lge.com/resource/mobile/RetrieveBootloader.dev?categoryTypeCode=ANRS
(direct link from LG Developer Resource Center!)
NOTE: THIS CANNOT BE UNDONE!
TWRP Touch Recovery:
http://forum.xda-developers.com/g4/orig-development/recovery-twrp-2-8-6-0-touch-recovery-t3125859
(kudos to @Dees_Troy & TeamWin)
1. Download "TWRP Manager" app from the Google Play Store
2. Advanced -> Install Recovery
3. DONE!
FLASHING:
Clean Flash:
1. Backup your data!
2. Reboot into TWRP Recovery
3. Go into settings and enable “Use Aroma File Manager”
4. Wipe Dalvik, Cache, System & Data
5. Flash your chosen ROM, basebands, firmware updates and other crap
6. Flash any GApps package. (the one I use: http://forum.xda-developers.com/android/general/gapps-lp-gapps-pa-gapps-aroma-installer-t3010798; kudos to @raulx222 & @slim Team)
7. Flash anything else (e.g. frameworks, boot animations, splash screens, themes etc.)
8. Reboot
9. DONE!
OR:
Dirty Flash: (flashing without wiping anything, used for updating to newer ROMs or reflashing)
1. Reboot into TWRP Recovery
2. ONLY wipe Dalvik Cache
3. Flash your chosen ROM, basebands, firmware updates and other crap
4. Flash any NEWER GApps package. If you manually installed/updated through Play Store, skip this step.
5. Flash anything else (e.g. frameworks, boot animations, splash screens, themes etc.)
6. Reboot
7. DONE!
It is perfectly fine if the first bootup takes a while, that is perfectly normal. Upon boot, Android will optimize itself so just let it do it’s work. Do put the phone under a fan as it does tend to get hot when optimizing since it is at max brightness or some dumb reason.
If it takes ages (like over 5-10mins) to boot up, it means you have luckily bricked your phone! Do source the XDA indices for any unbricking tutorial, or keep a lookout for an update on this page for instructions. (I don’t have any/don’t need to find any as I have never bricked any Android, so ya.)
Click to expand...
Click to collapse
DO NOT dirty flash if your newer ROM:
- Doesn't allow/support it
- Has a major update
- Has a Android version jump (e.g. from Lollipop to M)
- Is a totally different ROM from the previous one (e.g. from Stock to Cyanogenmod)
If after dirty flashing you experience any ROM issues (e.g. battery drain, lag etc.), I would advice you to do a clean flash instead.
Click to expand...
Click to collapse
RESTORING BACKUP:
Titanium Backup Method:
1. Use “Titanium Backup” batch restore
2. Menu -> Batch
3. Run -> Restore missing apps with data (*NOTE*: DO NOT RESTORE SYSTEM DATA)
4. Once done, go to Backup/Restore on the main app interface
5. Restore manually: Calendar Storage, Internet Bookmarks, Messaging SMS/MMS Prefs, Phone SMS/MMS/APN, User Dictionary, Wi-Fi Access Points**
6. Launcher Settings: (assuming you use Nova Launcher) Settings -> Backup & import settings -> Restore or manage backups
**What can I manually restore?**
Red: DO NOT RESTORE, YOU’LL END UP BRICKING/BOOTLOOPING YOUR PHONE!!!
White: 99% safe, go ahead
Green: 70% safe, beware of potential brick
Grey Stirkethrough: DO NOT RESTORE
Click to expand...
Click to collapse
OR:
Manual Restoration Method:
- Messages: “SMS Backup & Restore”
- Contacts: should be synced with the cloud, if not: Export to SIM card or SD card
- Calendar: should be synced with the cloud
- Notes: use “Google Keep”, it will be synced with the cloud
- User Dictionary: “User Dictionary Backup”
- Call Logs: “Call Logs Backup & Restore”
- Launcher (assuming you use Nova Launcher): Settings -> Backup & import settings -> Restore or manage backups
- Apps: “Helium” or any other app
store all backups in external SD card or transfer to your computer
---------------------------------------------------------
CHAPTER 3: ADDITIONS
- Temporary fix for Stagefright exploit
- Weather Widget
- XPosed
- Boot Animation
- TWRP Recovery Theme
- ExoPlayer for YouTube
- Ad-free
- Control
- Enhanced LG Touch Assistant
- Task Management
Temporary fix for 'Stagefright' exploit
Now, as we wait anxiously for our beloved OEMs to slowly update their softwares to patch for Stagefright, we are still vulnerable... UNTIL NOW! Here's a temporary protection for us, living in the slow ring of OTAs:
1. Open your messaging app.
2. Open your messenger's settings.
3. Disable "Auto receive MMS".
4. Repeat for all your other messaging apps.
5. DONE!
- If you're plainly lazy, download "Textra" messaging app which comes with in-built Stagefright protection!
Get G4's Weather Widget on ANY Launcher! (unofficial - Zooper theme)
My Official Thread: http://forum.xda-developers.com/android/apps-games/lg-g4-s-weather-widget-launcher-phone-t3135381
Here's how to get the UNOFFICIAL G4's weather widget on ANY launcher, including Smart Notice.
These steps do require paid apps, so as to prevent piracy, I will not provide download links for these apps.
1. Download "Zooper Widget Pro" from the Play Store. *note: it must be PRO to make it work*
2. Download "UX 4.0 G4 for Zooper" from the Play Store.
3. Add a 4x2 Zooper Widget to any home screen.
4. Tap the widget to start.
5. Choose "UX 4.0 by N.A Dev".
6. Scroll down and choose "5x2 UX 4.0 Smart Notice."
7. Widget OnTap Action -> App List -> Weather App
8. Location -> Choose accordingly
9. Global Preferences -> Weather Provider -> Yahoo!
10. Calendar to display -> Deselect all events
11. Check the 1st Rich Text (it should be "Rect, W:388 H:192 R:0")
- Tap the pencil edit icon (most top right)
- Module OnTap -> App List -> Weather
12. Check the 2nd Rich Text ("Rect, W:400...")
- Edit
- Module -> Shortcuts -> Activities -> Smart Notice
13. Rich Text: (date, e.g. Monday, 15 June)
- Edit
- X Offset 181, Y Offset -5
- Module -> App -> Calendar
- Edit Text Manually -> Remove what's there and type this in: #DEEEE#, (enter next line) #DMMMM d#
- Lines -> 2
14. Rich Text: (location)
- X Offset -186, Y Offset -30
- Module -> App -> Maps
- Edit text manually -> Remove what's there and type this in: @ #LLOC#, (enter next line) #LCN#
- Lines -> 2
15. Rich Text: (updated on (time))
- Edit text manually -> Remove what's there and type this in: #BSTAT#: #BLEV#, #BTEMP#, #BLEFT#
16. Rich Text: "]"
- Blur 0
17. Add a Rich Text
- X Offset 0, Y Offset 4
- Edit text manually -> Remove what's there and type this in: #WCCOND#
- Size 14
18. Go back
19. Turn on Wi-Fi/Data & Location Services (if needed) & Force Update
20. Save
21. Quit Zooper App
22. Go to your home screen and tap "Refresh button".
23. Finally done!!
- Do remember to put Zooper on the Ignore List for any battery or task killer app!
---------------------------------------------------------
FAQ:
- Any battery impacts?
Shouldn't be, so long as you follow the steps correctly.
- What if my weather shows "??" or "Unknown"
Go into the Widget Settings and Force Update
- My location isn't accurate!
Manually tell the widget your location, don't use auto.
- The weather isn't accurate!
For now, there's no choice as it isn't powered by the all mighty Google or AccuWeather.---------------------------------------------------------
XPOSED FRAMEWORK:
http://forum.xda-developers.com/showthread.php?t=3034811
(kudos to @rovo89)
1. Download “xposed-sdk21-arm-2015xxxx.zip” and flash in recovery
2. Download “XposedInstaller_3.0-xxxx.apk” and install normally
3. Download your favourite modules from the XDA indices
4. Open Titanium Backup app and freeze “LG QuickCover”
5. DONE!
BOOT ANIMATION:
6.x Marshmallow:
https://www.copy.com/s/t%3A83YzqkU0VlAHdSsY%3Bp%3A%252Fbootanimation-flashable.zip%3Boid%3A400
(kudos to @Upstreammiami)
(flashable)
1. Download “Root Explorer” app
2. Go to root/system/media
3. Mount R/W
4. Change “bootanimation.zip” to “bootanimation.old”
5. Download “bootanimation-flashable..zip” and flash in recovery
6. DONE!
5.x Lollipop:
(if not flashable)
1. Download “Root Explorer” app
2. Go to root/system/media
3. Mount R/W
4. Change “bootanimation.zip” and “shutdownanimation.zip” to “bootanimation.old” and “shutdownanimation.old” respectively
5. Copy your boot animation and shutdown animation of choice and rename to “bootanimation.zip” and “shutdownanimation.zip” respectively
6. Change permissions to rw-r-r-T (Read Owner, Read Group, Read Others, Write Owner, Sticky)
7. Mount R/O
8. Reboot
9. DONE!
TWRP Recovery Theme
http://forum.xda-developers.com/android/themes/theme-twrp-materialised-dark-light-play-t2915584
(kudos to @z31s1g)
1. Choose 1440x2560 Themes Folder
2. Download your chosen zip file to your device
3. Change "28xX_vx_1440_xxxx.zip" to "ui.zip"
4. Open your favourite file manager app
5. Go to the TWRP folder
6. Create a folder named "theme" **no capital letters!**
7. Copy "ui.zip" into this folder
8. Reboot to recovery
9. DONE!
Faster YouTube: ExoPlayer
http://r3pwn.github.io/yt-exoplayer.html
1. Download “Root Explorer” app
2. Go to data/data/com.google.android.youtube/shared_prefs
3. Add the following lines below "<map>":
<string name="exo_player_activation_type">ADAPTIVE</string>
<boolean name="enable_exo_cache" value="true"/>
<boolean name="show_exo_player_debug_messages" value="true"/>4. Once done, close and mount R/O
5. Force Close YouTube app in Application Settings
6. Reboot
7. Done!
Ad-Free
- Download "AdAway" app from F-Droid
https://f-droid.org/repository/browse/?fdid=org.adaway
Control
- Download "SELinux Mode Changer" from F-Droid
https://f-droid.org/repository/browse/?fdfilter=selinuxmodechanger&fdid=com.mrbimc.selinux
Enhanced LG Touch Assistant
http://forum.xda-developers.com/lg-g3/themes-apps/app-touch-assisstant-themed-t3199658
(kudos to @no14me)
1. Download “Root Explorer” app
2. Go to root/system/priv-app/LGSettingsAccessibility
3. Mount R/W
4. Change “LGSettingsAccessibility.apk” to “LGSettingsAccessibility.old”
5. Copy your accessibility of choice and rename to “LGSettingsAccessibility.apk”
6. Change permissions to rw-r-r (Read Owner, Read Group, Read Others, Write Owner)
7. Mount R/O
8. Reboot
9. DONE!
Task Management
- Download "Greenify" or "Servicely"
http://www.apkmirror.com/apk/oasis-feng/greenify/
http://www.apkmirror.com/apk/francisco-franco/servicely/
Honestly, I don't encourage battery managers such as "Battery Doctor" or "Clean Master (Speed Booster)" as realistically, it takes up more battery or RAM in trying to keep the app open to "properly manage the battery". Yes there are benefits such a having a zippier G3, but there are better methods out there.
Click to expand...
Click to collapse
---------------------------------------------------------
CHAPTER 4: FONTS
- Font
- Emoji
Changing ROM Font
http://forum.xda-developers.com/android/themes/fonts-flashable-zips-t2964304
(kudos to @gianton)
Simply flash the zip in recovery and done!
Changing Emoji
New iOS 8.3 Diverse Jaundice Emoji:
http://forum.xda-developers.com/android/software-hacking/mod-apple-8-3-diverse-color-emoji-t3136169
(kudos to @caiosilva96)
1. Download “Root Explorer” app
2. Go to root/system/fonts
3. Mount R/W
4. Change “NotoColorEmoji.ttf” to “NotoColorEmoji.old”
5. Copy your emoji of choice and rename to “NotoColorEmoji.ttf”
6. Change permissions to rw-r-r (Read Owner, Read Group, Read Others, Write Owner)
7. Mount R/O
8. Reboot
9. Now, on your phone (with new emojis installed), go to http://emojipedia.org/skin-tone-modifiers/
10. Copy the "(skin colour)" that comes before "Emoji Modifier Fitzpatrick Type-1-2"
11. Go to your settings app, then keyboard settings, then personal dictionary
12. Create a new word "(skin colour)", shortcut of "skin2"
13. Repeat for skins 3-6
14. Reboot if you want to
15. DONE!
- To change the skin colour, type the emoji, followed by the shortcut word (e.g. "skin2")
OR:
Traditional iOS Emoji:
http://forum.xda-developers.com/lg-g3/themes-apps/howto-change-lg-smiley-to-google-smiley-t2809012
(kudos to @Soulfly999)
1. Download “Root Explorer” app
2. Go to root/system/fonts
3. Mount R/W
4. Change “NotoColorEmoji.ttf” to “NotoColorEmoji.old”
5. Copy your emoji of choice and rename to “NotoColorEmoji.ttf”
6. Change permissions to rw-r-r (Read Owner, Read Group, Read Others, Write Owner)
7. Mount R/O
8. Reboot
9. DONE!
---------------------------------------------------------
CHAPTER 5: BATTERY
- The cliche...
- Extreme
- Resolution changing
the cliche stuff...
Turn on power saving, turn off bluetooth, Wi-Fi, data, NFC etc., turn off automatic brightness and blah blah blah...
The Extreme Battery Life
http://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884
(kudos to @vaisakh7)
Change resolution down to 1080p
- Download "NOMone Resolution Changer" from the Play Store:
https://play.google.com/store/apps/details?id=com.nomone.resolution_changer&hl=en
(more coming soon)
---------------------------------------------------------
CHAPTER 6: GOODBYE
GO BACK TO STOCK + UNROOT + LOCK BOOTLOADER:
1. Backup your data!
2. Download “LG Flash Tool 2014”
3. Download your stock KDZ file of choice and of device model
4. Run “LGFlashTool2014”
5. Enter Download Mode:
a. Turn off the phone
b. Press and hold the ‘Volume Up’ key and connect your USB cable to the computer at the same time once the phone is fully turned off6. Set PhoneMode to “DIAG”
7. Select your downloaded KDZ file
8. Click “CSE Flash”
9. Click “Start” (DO NOT CLICK ANYTHING ELSE)
10. Click “OK” (DO NOT CLICK ANYTHING ELSE)
11. DONE!
(doesn't work any more )
---------------------------------------------------------
CHAPTER 7: MISCELLANEOUS
- Developer Settings
- Nova Launcher Secret Labs
- Free Google Drive
- Official wallpapers
ENABLING DEVELOPER SETTINGS:
1. Settings app
2. About phone
3. Software info
4. Tap build number repeatedly until it prompts you
**secret** ENABLING NOVA LAUNCHER LABS SETTINGS:
1. Nova Settings
2. Hold down ‘volume down’ key until it prompts you
FREE 100GB GOOGLE DRIVE STORAGE!!!
1. Open Drive Settings
2. Finish the Product Tour to redeem!
OFFICIAL G4 WALLPAPERS:
http://www.phonearena.com/news/Download-the-official-LG-G4-wallpapers-here-leather-background-included_id69079
(kudos to PhoneArena)
---------------------------------------------------------------------------------------------------------------------------------
Thanks for reading. If this helped, do give me a thumbs up.
Frankly, I do not want any donations.
"Let's get this pinned on the General Thread shall we? Pretty please with cherry on top..." :victory:
“Hi, I am Lousyguyy, a guy lousy enough to do this.”
ROM Index:
NOTE: I'll try my best to update this thread every weekend. Please PM or leave a comment below if I happened to miss out your ROM. Thanks guys!
---------------------------------------------------------------------------------------------------------------------------------
STOCK-based ROMs:
1. H815 v10C
http://forum.xda-developers.com/g4/development/stock-h815-10c-stock-rom-kdz-t3141866
by @autoprime
2. H815 v10A
http://forum.xda-developers.com/g4/development/rom-h815-10a-stock-rooted-rom-t3129036
by @autoprime
3. H811 (T-Mo) v10H
http://forum.xda-developers.com/g4/development/rom-lg-g4-h811-10h-t-mobile-usa-stock-t3142779
by @MicroMod777
4. All
http://forum.xda-developers.com/g4/development/h815-eu-l-p-t-sea-twn-t3176195
by @Marcosuper7
5. All v10G Genisys
http://forum.xda-developers.com/g4/development/h815-genisys-rom-1-0-classic-v10g-t3192649
by @BySezerSimsek
---------------------------------------------------------
AOSP ROMs:
1. H811/H815 5.1.1 BlissPop and Cyanogenmod 12.1 ROM
http://forum.xda-developers.com/g4/development/h811-h815-blisspop-cyanogenmod-12-1-t3185593
by @genesixxbf3
---------------------------------------------------------------------------------------------------------------------------------
Changelog
20th Sep:
- Complete thread overhaul
- Integrated ROM Index thread into this mega thread
OLDER:
14th Sep:
- Finally had time to credit all the great devs!!
- Marshmallow Boot Animation (flashable)
- Added LG Accessibility Themes
9th August: (yay for SG50!) :good:
- Temporary fix for "Stagefright" exploit
5th July:
- New iOS 8.3 diverse jaundice emojis!
15th June:
- Housekeeping!!
- G4 Weather Widget with Smart Notice
- Blueprint Wallpapers thread
7th June:
- My New ROM Index thread!!!: http://forum.xda-developers.com/g4/general/index-complete-g4-rom-index-t3129338/post61210790#post61210790
- Dirty & clean flashing
- Extreme battery life
- Terminology
- Tidbit
- New lock screen wallpaper
3rd June:
- Added Official LG Unlock
- Added TWRP
- Added Secret Nova Launcher Lab Settings
- Added LG Wallpapers
- Added Free Drive Storage Redemption (may not work for some)
- added more stuff I forgot.
- Removed Relocking
5th May:
THIS THREAD WAS BORN!!!
My Comment
Coming soon.
Several of the steps you list in here require root.
Many of the steps you list in message #1 require root priviledges:
Titanium Backup, any process using Root Explorer, Xposed, Greenify, AdAway all require root access. Maybe that requirement should be mentioned in each chapter.
eagerly waiting for any possible root methods.
i haven't got my hands on my G4, but it would be good to know that when my phone arrived i can root the hell out of it
i get my G4 v23-24, hopefully there is a root already then!!
*root is essential.
I would like to add a request for "enable wifi hotspot" to be added to the first post, when possible.
This is my first LG phone and I hope I can get the wifi hotspot working on Sprint once I get the G4 rooted.
Thanks a lot.
ahoythere said:
I would like to add a request for "enable wifi hotspot" to be added to the first post, when possible.
This is my first LG phone and I hope I can get the wifi hotspot working on Sprint once I get the G4 rooted.
Thanks a lot.
Click to expand...
Click to collapse
This gets added to almost any ROM anyways, so you should be fine.
Has anyone found a reliable place to get the LG G4 USB drivers? I've connected my G4 to the Mac, installed the drivers through the popup that appears, and doesn't work. The Mac can't detect the G4, and neither can adb.
EDIT: Never mind. Using LG PC suite seems to work. Adb connected.
Dennisg34 said:
This gets added to almost any ROM anyways, so you should be fine.
Click to expand...
Click to collapse
Not everyone wants to install a full ROM for select functions however.
Lock-N-Load said:
Not everyone wants to install a full ROM for select functions however.
Click to expand...
Click to collapse
True. Most of us just want root then we can use xposed to get the rest of the function we want.
frigidazzi said:
True. Most of us just want root then we can use xposed to get the rest of the function we want.
Click to expand...
Click to collapse
Xposed going to require custom recovery also
Can we helps devs to get more info for root? I have the G4 currently
I'm an LG newbie. It would be nice if you could link drivers and flashing software in your post.
I've owned just about every Motorola, some HTCs and Samsung phones and rooted and rom'd for years. This will be my first LG. Motorola has just become too much a pain in this area though rumor is the BL is locked on the LG too. Even root and xposed would be enough to protect my privacy.
ordered mine today
now we wait for root
Hi guys
Got my G4 earlier today. Just love it! One problem, my music on sd card doas not show up in the music app. And also when using MX player videos on sd card do not show up.
Sent from my LG-H815 using XDA Free mobile app
Thanks a lot.
tichyb said:
Hi guys
Got my G4 earlier today. Just love it! One problem, my music on sd card doas not show up in the music app. And also when using MX player videos on sd card do not show up.
Sent from my LG-H815 using XDA Free mobile app
Click to expand...
Click to collapse
Have you tried PowerAmp or other non-stock music player? This would kill the deal for me. I suspect there are options and would love to know PowerAmp, in particular, works with the external card. I have way too much music I need to have with me which is why I require sdcard support.
AliceBToklas said:
Have you tried PowerAmp or other non-stock music player? This would kill the deal for me. I suspect there are options and would love to know PowerAmp, in particular, works with the external card. I have way too much music I need to have with me which is why I require sdcard support.
Click to expand...
Click to collapse
I did not try the stock, because I have the full version of poweramp and it is working very well. My music is on the exsternal sd card
I am making this tutorial as I have had multiple versions of the LG LTE Leon and have used many firmware versions. I have created a stable method that has the least issues as I have had trouble with the latest firmware (MS34510f) disabling my root privileges. I have created a MEGA account specifically for all of the files necessary to complete this operation and have your device run smoothly. So, please follow my instructions exactly as stated and you should not have any issues. THIS PROCESS WILL REMOVE ALL DATA NOT SYNCED, DO READ BELOW NOTES IT IS VERY BENEFICIAL
Important Notes:
+This process will wipe all data that is not synced, it is important to ensure that no newer LG process are still on the device. Some might argue to leave data, to that I say good luck keeping your root and tethering without the device becoming suspiciously unstable.
+ I am not GUARANTEEING this will work on every model, but I have had an extremely high success rate with all Leon versions.
+ In this tutorial the process in which I remove Kingroot and replace it with SuperSu is for system stability. I find that most root functions I use seem to not work properly. (Wifi Tether Router and many others). So, I do recommend doing so.
+After the new OS is installed a MetroPCS splash screen will appear even if you do have T-Mobile. DO NOT BE ALARMED this firmware will not limit any functionality you had before, it will even help with tethering functionality.
Tutorial:
Let's Begin.
1. Download the link posted to obtain required files for this tutorial
Link: https://mega.nz/#F!PM4CQRqb!92kgIOnD0ZBY-8HVbtTwGQ
2. Open up LGFlashTool2014.exe
Begin by copying settings posted below, then click "normal flash"
3. Next click the "START" button
4. At this time, I recommend you verify all sync settings are to your liking and that all personal info needed is backed up
a. You have the option to throw all of your personal documents/pictures onto your SD card and removing it appropriately
(Go to: Settings - Storage - [scroll down to] Unmount SD card)
b. Next, navigate to Settings -Backup & reset [leave options default; both checked off] - Factory data reset - reset phone
c. Once reset it will most likely reboot, wipe, and then back to a OS. Now, you will Power Off entirely (make sure it is not plugged in so it will not go to charging mode)
d. Here is where we will hold down the Volume Up button with the phone unplugged from your PC. Then you must plug the USB into your phone.
e. A black screen with white text should post onto your screen, here we will continue to step 6
note: If this screen does not appear please power off and retry step d.
6. Next, follow the posted settings. Make sure to click the "Clear phone Software update Registry" button Then click "OK"
7. A new screen will arrive, and should begin the firmware download process. At this time it will take a few minute to load and should reboot to a fresh OS.
8. With the new OS in place, you can either follow the setup tutorial now or skip through for a later setup.
note: you can now insert your SD card
9. In the tools folder of the folder you downloaded copy the "mrw" folder to the Main Storage folder of your phone
10. Now copy the Kingroot apk to your downloads folder located on the main storage.
11. Go to Settings - About Phone - Software Info
At this time click the build number box a few times until it says you are a developer
12. Hit back until you are at the Setting menu, click on Developer options and check off "Stay Awake" and "Enable OEM Unlock" as well as "USB Debugging"
13. You may now run Kingroot, if it does not install root the first time it should flawlessly install the next.
14. After root is obtained, please go to your home screen and click the "Google Search" widget. Press Update Google Services and let it run. After that has been updated search for terminal emulator and install.
note: If the Play Store is acting fishy and force closing while typing in the search bar do not fret it will be fixed after reboot in further instruction
as an allternative use the jackpal.androidterm-1.0.70-71-minAPI4.apk provided in the "tools" folder
15. Open terminal and in a new window type: Su
16. Allow root usage and at this time type: sh /storage/emulated/0/mrw/root.sh
17. It will run with a few failed messages do not worry it should open SuperSu momentarily
18. Once SuperSu opens up allow it to update binaries using the "NORMAL" option but DO NOT REBOOT YET
19. At this time either download TWRP Manager from the play store or alternatively use the com.jmz.soft.twrpmanager-7.5.1.3-82-minAPI11.apk provided in the tools folder
20. Install and open TWRP Manager. Once opened click on device name and scroll until you see "LG Leon LTE (c50)"
a. Click on Recovery Version to Install and select "twrp-2.8.7.0-c50.img"
b. next click "Install Recovery" and if prompted for verification of install path and for install version select "YES" & "NORMAL"
21. After the TWRP setup is complete it may prompt you to reboot, if not click the arrow in the top left of the TWRP Manager screen and scroll down to "Reboot" and select "Reboot device"
22. After Reboot click TWRP Manager and verify a SuperSu prompt comes up if it hasn't already before the boot
At this point the device should be running smoothly. From here I prefer to do the following steps.
My Personal Setup after new install:
+Personally I like to install use a Root Uninstaller (I use 3C Toolbox Pro) and Uninstall and Backup all MetroPCS BloatWare including the Metro Browser.
+I also access the Hidden Menu by using the Dialer and Dial "2776348*#*"
- I scroll down to ApnUnlock and click to "Unlock APN"
- Then I navigate to Settings -Tethering & networks - Mobile Networks (I check off roaming data) - Access point names
--I then select the top APN and edit APN Type to: default,supl,mms,dun
---I click save from the top right selection, then turn on and off airplane mode
+If you are and Xposed user download "xposed-v79-sdk22-arm.zip","xposed-uninstaller-20150831-arm.zip", and "XposedInstaller_3.0_alpha4.apk" from: http://forum.xda-developers.com/showthread.php?t=3034811
-install the Xposed Installer, then Go to TWRP Manager, use reboot to recovery and from there click install and navigate to the "xposed-v79-sdk22-arm.zip" and install and reboot, it will reboot with a installing screen before your home screen, takes 5 minutes.
+I also use this AMAZING app "Wifi Tether Router", it is the only tethering app I use that works consistently (if you have an unlimited data plan). I get 30mbps up and down, playing many multiplayer games off my PC and PS4 averaging ping as low as 30 ! Setting I use for our device are in a post I created here: http://forum.xda-developers.com/leon/help/unlimited-metropcs-t-mobile-tether-t3290180
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Special Thanks to:
MrW0lf from www.W0lfdroid.com for the Kingroot to SuperSU scrip
Numerous users on the XDA forums I pieced all of this information with
Fabio Grasso for making the amazing Wifi Tether Router
Team Win for being creating an awesome utility that has saved me from numerous bricks creating a stable method
Xposed and the creators of awesome additions such as Lolistat, Lucky Patcher, Max Lock, and SNAPPREFS
Any feedback? Did I do Okay? Questions? Let me know!
Mega link down
The mega link isn't working. Please fix it.
Hello XDA community,
Im a noobie when it comes to rooting, thats why i need help...
I deleted some files that i want to recover on my Samsung S7 Edge 2-3 years ago, this device has Android 7.0. (Never updated)
There is a lot of apps such as Disk Digger that offer you to recover every single file but the device must be rooted to access 100% on the internal memory.
Right now my Samsung S7 Edge is not rooted but i need to root to recover this files, so my question is, there is anyway of rooting without factory reset, or there is anyway of doing a fully backup of the internal memory of my device without touching the partitions so then i can try recovering my files later with this apps?
I hope someone can help me...
Regards
It's pretty disappointing that nobody ever responded to this considering how big is a community it is and how popular the S7 Edge was. I know this is pretty old and hopefully you were able to resolve this before this message but I'm going to respond to this just so you don't feel like your question wasn't acknowledged at all. I have an S7 Edge through Verizon which uses the Snapdragon processor. And I will find a link to post for you that although the method says it's discontinued I rooted my phone through this method and it works fine. The only reason that you would have to wipe your phone is if you're changing firmware as far as I know. I've rooted my phones and did not have to wipe them. I kept all the data and everything.
Before I lift this you are also asking about an application that you could use to back up your phone and that would be Samsung smart switch. It has a companion app for the desktop and it sinks to the phone and it'll make a backup of your data.
Now on to the root method all props and praise goes to the people that worked to give this to the people I'm not good at doing all this **** and I'm not meaning to step on any toes I'm just trying to help you since nobody did for two ****ing years.
To root
1. Download PrinceComsys Odin
Odin.Prince.Comsy.zip
drive.google.com
2. Download the engboot.
Engboot Download
Nougat_S7_Edge_EngBoot.tar.md5
drive.google.com
3 make sure you have adb and fastboot installed on your computer (goggle them)
4. Root file
Download the file below.
Nougat_S7_Root_2_82_All_Carriers_V2.zip | by jrkruse for Galaxy S7 Edge
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
BELOW IS THE ROOT AND MOD FOR THE PHONE!!!!!
Follow this method to root:
1. Shut off the phone and boot into download mode (volume down, home, and power). Use Odin And Flash Nougat_S7_Edge_EngBoot.tar.md5 In AP Slot
2. When the phone reboots, unlock developer options by going into the phone settings scroll down to 'about phone' find the build number and tap on it repeatedly after several times it will unlock Developer Options then back out once and in your settings you should have a new option on the very bottom called developer options go into that and enable USB debugging and Disable Verify Apps Over USB.
Plug the phone into the computer and make sure you have adb and fastboot installed to this location
C:\Users\YOUR PROFILE\AppData\Local\Android\Sdk\platform-tools
go to that folder and inside it hold shift and right click then click on 'open command window here'
then in command prompt type
adb devices
then hit enter.
The computer should automaticly detect and run adb
3. Unzip the Nougat_S7_Root_2_82_All_Carriers_V2.zip and hold shift and right click then click on 'open command window here'
In the command window type root.bat then press enter from your PC.
4. This will install root when done phone will reboot
5. The process wipes dalvik cache so it will take a few minutes to reboot
6. If having problems getting Grant SuperSU dialog to come up you can delete the SuperSU app and root will be granted instantly to all root request
Give phone a few min to settle open developer options set animation scales .05 and others to .05
Give phone a few min to settle open developer options set animation scales .05 and others to .05
ODIN FAILED TO WRITE ERROR
Did you get this Failed To Write Message in Odin?
----------------------------
Odin Error Message:
<ID:0/003> FAIL! Model dismatch fail
<OSM> All threads completed. (succeed 0 / failed 1)
SOLUTIONS
Did you:
? Open Odin as Administrator?
? Try the Prince Comsy version?
? Enable Developer Settings?
-Open Settings > About Phone > Tap Build Number 7 Times
? Enable OEM Unlock?
-Go Back to Settings > Tap Developer Options > Tap OEM Unlock
? Enable USB Debugging?
-Tap Developer Options > Tap USB Debugging
NOTHING WORKS
Did you try every single thing but nothing works?
Well, did you right click "Odin" each time you go to open it and then click "open as administrator"?
Sometimes you have to try several different versions of Odin.
But I have found that Odin3 v3.12.7 was the one that would work when the others had not.
I always would forget to also open Odin as Administrator.
It's a pain in the neck to have to remember to open as admin every time.
But you usually have to do it.
Did you check that ADB had started? Maybe that might be the reason it won't work?
But I doubt it! But you just never know and I am just trying to help you get it flashed.
It's a very quick flash and you can see that the PDA load was very quick as well.
But as far as the errors, you just have to keep trying...
Which I mean, you sometimes have to open, close, reopen Odin when it doesn't work.
Sometimes that helps, sometimes it doesn't.
It's all about the right Odin version at the time
making sure the cord is good
Opening Odin as Admin
And keep trying again after restarting your phone by holding the download mode button sequence again.
============
Congratulations! You are ROOTED but you're not done
Follow these instructions next
On your phone, open the SuperSU app (installed during the root process) and tap on Settings. Half-way down under Security, tap on "Enable su during boot".
This option will ensure that startup scripts that are installed during this process get to do their job correctly.
Download the fix or fix+debloat script flashable ZIP package appropriate for your model of phone and copy this file to your device:
S7_VOLTE_ICON_FIX_ALL_VARIANTS or S7_or_S7Edge_Fixes_V15.zip (MD5 hash F15CD9BDC35382A8F48FFBEDBB1BCDF0) (any Samsung Galaxy S7 or S7 Edge)
turn off auto update of time and date in your phone settings, then set your year to 2013,
Launch FlashFire app on the phone and click the (+) button in the lower right to add a step. Select a 'Flash ZIP or OTA' flash step.
Locate the flashable ZIP package and select it. For options, check on 'Mount /system read/write' and leave the rest of the options unchecked.
Tweaks to Root
Debloat and fix several issues with the phone (CPU lag issues, poor battery performance, phone becoming too hot, Wi-Fi not saving passwords, hotspot/tethering not working,
VoLTE icon appearing, searching for service issues, MMS not working, unauthorized security nag notification, etc.):
Full notes on what this flashable update does:
Adds a rotate button to the native gallery app
.
Adds a shortcut call button in the call log next to each logged call.
Adjusts several CPU tunables, which fixes phone lag and battery life issues.
Disables "No SIM" popup when no SIM card is present.
Disables roaming data by default.
Disables secure storage support, which fixes Wi-Fi passwords not saving issue.
Disables Verizon provisioning for Wi-Fi tethering/hotspot (will still use your data plan, of course).
Enables ADB to run as root by default.
Enables CPU idling/sleeping, which fixes phone heat issues.
Enables mock GPS locations.
Enables native call recording feature in the dialer.
Enables native Wi-Fi calling feature in the dialer.
Enables RIL power saving features.
Enables scheduled messages in the native messaging app.
Enables the camera during calls.
Enables unlimited contact merging.
Enables using the new 3GPP2 Profile ID (Verizon exclusive).
Fixes various 'searching for service' and other cellular network connectivity issues (SMS/MMS not working, calls not working, etc.)
Knox apps, drivers, and data are removed (fix+debloat version).
Prefers LTE network.
Raises the contact name length limit to 1,280 characters.
Raises the maximum SMS recipient limit from 10 to 90.
Remove nagging 'unauthorized actions' security notification (fix+debloat version).
Removes VoLTE icon.
after you flash your stuff change the date back. and you're good.
I know this all seems like a lot and it seems very confusing but it's pretty easy if you just follow the directions this will not wipe your data. Please do research, read through the forms and just tried to get as much knowledge as you can before you go about doing this it's an easy process but it's better to go in with more knowledge, I hope this helps. If you have to reinstall the firmware make sure that you install CSC home so you don't lose your data
[GUIDE/TUTORIAL/HOWTO] Huawei Honor 5X from Stock to Android 10
[GUIDE/TUTORIAL/HOWTO] Huawei Honor 5X (kiwi) from Stock to Android 10 / LineageOS 17.1 in 2023
Complete guide to install Android 10 on your Huawei Honor 5X.
This tutorial only applies to this model, to check the correct version:
in Android, go to Settings > About phone > Model number, make sure it is one of these models:
- KIW-L24
- KIW-L22
- KIW-L21 (Qualcomm Snapdragon)
Not 100% sure for following models:
- KIW-L23
- KIW-AL10
- KIW-AL20
- KIW-CL00
- KIW-UL00
- KIW-TL00
- KIW-TL00H
- KII-L05
- KII-L22
- KII-L21
I wrote tis tutorial with KIW-L21.
See all my tutorials at https://github.com/djibe/Android-tutorials
Netflix and Disney+ are working.
CHANGELOG
v1. Initial release
1) WHAT YOU NEED
- djibe Honor 5X pack: https://bit.ly/honor5xdjibepack or https://anonfiles.com/EfHbPev2z2/djibe_Honor_5X_pack_zip or
(Contains TWRP Recovery 3.4.0-0 + Magisk root + Huawei USB drivers x32/64 + fastboot + cited files for root)
+ ROM LineageOS Unofficial 17.1: https://forum.xda-developers.com/t/rom-10-0-lineageos-17-1-unofficial-for-honor-5x.4212671/
Download latest build here: https://mega.nz/file/tbUliQ7Q#7f7Byu1QuuYNkojPnu5MDevPyCx6oMxXxQsjgjciCsE
+ BitGApps ARM64 10: https://github.com/BiTGApps/BiTGApps-Release/releases
+/- extra apps: https://bitgapps.github.io/addon/ARM64.html
+ a microSD card formatted in FAT32: copy ROM, GApps (+ Magisk). Insert it in phone
+ Charge phone to 100%
2) INSTALL DRIVERS
Install Huawei USB drivers.
Then plug phone to PC and let the install go on.
3) BACKUP YOUR DATA
When your phone is connected to Windows, search for all .jpg, .mp3, .mp4 files on your phone and make copies on your PC.
Then, with your Google Account (Whatsapp and co) or an app like Backupyourmobile, backup all your SMS, MMS, contacts.
Make sure the backup is located on microSD card.
4) UNLOCK BOOTLOADER
Update your Honor 5X to the latest official Android 6 Marshmallow (MM).
In Android, go to Settings > Updater. Make sure you have latest version.
Go to Settings > About phone.
Tap 7 times on Build number to unlock Developer options.
Go to Settings > Developer options.
Switch ON "Enable OEM unlock" and "USB debugging".
You must pay to unlock bootloader as Huawei closed the official website.
List of services offering unlock codes for money:
- DC Unlocker ($4 + VAT): https://www.dc-unlocker.com/supported_models_1/huawei_phones
- MinistryOfSolutions ($4): https://ministryofsolutions.com/huawei-bootloader-unlock-paid-service-html
Follow steps to get a paid unlock code. Here are the steps for DC Unlocker.
Go to DC Unlocker website: https://www.dc-unlocker.com/supported_models_1/huawei_phones
Download latest Client for Windows and install it.
On phone, launch Dial pad and type: *#*#2846579#*#*
ProjectMenu opens.
Go to Background Settings > USB Port Settings > select Manufacture Mode and Close.
### If you restart phone before the end of the process, you have to do this again.
Connect Honor 5X to PC.
Go to Windows Device Manager.
In the Modems section, Android Adapter Modem is listed.
In the Ports section, Android Adapter PCUI (COMn) is listed.
### If not, you must check USB drivers installation again.
Launch DC Unlocker.
- Select manufacturer: Huawei phones
- Select model: Auto detect (or Huawei Qualcomm Android phone)
Click magnyfying glass button.
DC Unlocker returns:
Code:
Found Applications port COM3
Found Diagnostics port COM5
Found Phone : HUAWEIKIW-L21
Model : Huawei Qualcomm Android phone
IMEI : xxx
Serial NR. : xxx
Firmware : xxx
Hardware ver. : HL3KIWMAD
Now go to DC Unlocker shop: https://www.dc-unlocker.com/buy
You need 4 credits ($4) for operation 24: Huawei Qualcomm Read Bootloader Code (up to Android 8)
Set subscription as:
Item: New user account
User name: YOUR CHOICE
Credits: 4
I used Credit card.
Note down purchase informations, we will need these in DC Unlocker.
Back to DC Unlocker.
Go to Server panel.
Fill User name and Password with data from your receipt.
Click Check login.
Go to Unlocking section and click Read bootloader code button.
DC Unlocker returns:
Code:
Reading bootloader code...
Bootloader code : xxx
Note down Bootloader code carefuly.
On phone, launch Dial pad again and type: *#*#2846579#*#*
ProjectMenu opens.
Go to Background Settings > USB Port Settings > select Google Mode and Close.
Go to my djibe/flash folder.
In the address bar, type cmd and confirm with keyboard Enter key.
Enter command:
Code:
adb devices
Authorize USB debugging from phone.
Enter command again (use arrow up key to print last command):
Code:
adb devices
Command returns
Code:
List of devices attached
W6HDU16325009900 device
Then:
Code:
adb reboot bootloader
Phone switches to white screen in FASTBOOT&RESCUE MODE.
To check that fastboot USB drivers are OK, type:
Code:
fastboot devices
### If command doesn't print a line like: 516b3414 fastboot, you have to fix USB drivers.
Now enter THE command:
Code:
fastboot oem unlock FILL_WITH_YOUR_UNLOCK_CODE
Confirm with enter and wait a moment ... till success is confirmed :
"(bootloader) Unlock success , the device will reboot and factory reset
OKAY [ 0.046s]
Finished. Total time: 0.046s".
Keep Windows command opened and let phone reset Android.
4) FLASH RECOVERY
Configure Android rapidly.
Unplug phone and replug USB.
Go to Settings > About phone.
Tap 7 times on Build number to unlock Developer options.
Go to Settings > Developer options.
Switch ON "Enable OEM unlock" and "USB debugging".
Back to Windows command, type:
Code:
adb reboot bootloader
Twice to authorize USB debugging from phone again.
Now that you are back to bootloader, enter:
Code:
fastboot flash recovery twrp-3.4.0-0-kiwi.img
Confirm with Enter.
Terminal confirms : "Finished. Total time: 2.711s".
And now:
Code:
fastboot boot twrp-3.4.0-0-kiwi.img
### If phone goes in a bootloop, disconnect phone and force shutdown holding Power button.
Welcome to TWRP 3.4 recovery.
TWRP asks for Keep System Read Only ? Swipe to Allow Modifications.
### You don't see this warning screen? Then you'll get "TWRP unable to mount storage" while trying to wipe partitions.
### > in TWRP, go to Reboot > Recovery so Recovery will refresh and popup the partition writing privilege.
In TWRP home screen, go to Wipe > Format data.
This will remove encryption.
Type yes and confirm to format partition.
Go to Reboot > Recovery.
Back to TWRP, go straight to Backup menu.
Select Boot, Data, System, Custom, OEMinfo, EFS and Firmware partitions.
Tap on Select Storage and set Micro SD card.
Swipe to Backup and wait during backup.
### If MicroSD card is too small. Backup on data partition and after backup has ended, go to Mount and connect phone to PC to retrieve TWRP backup folder.
### Store this backup (aka nandroid backup) somewhere safe before going further.
5) WIPE PARTITIONS
Go to Wipe > Advanced Wipe and check Cache, Data, Internal Storage, System and Swipe to Wipe.
6) FLASH ROM, BITGAPPS +/- MAGISK
Back to TWRP Home menu. Then tap on Install > select Storage MicroSD > choose lineage*.zip,
(if you don't see the files, tap on Select Storage and make sure Micro SDCard is active).
then Add more Zips > BiTGApps*.zip,
Optional: Add Magisk*.zip
then Swipe to confirm Flash.
Wait for operation to end.
Then tap Wipe cache/dalvik, swipe to confirm,
then Reboot System.
Android 10 is installed !
Wait for the phone to boot during 10 minutes.
7) ROOT WITH MAGISK (OPTIONAL)
### Only if you flashed Magisk via TWRP recovery
Do not connect to Android account.
Magisk root starts with Android.
You can manage permissions and extra modules with Magisk Manager app.
Open Files app > Install Magisk.apk.
Then in Magisk goto Settings > Hide magisk app and give it a name, switch Zygisk option ON.
Go to Modules Tab > Install from Storage: MagiskHidePropsConfig and safetynet.
Go to Developer options to disable Android debugging (ADB).
Reboot phone.
You can use yasnac app to check Safetynet passes.
Then with Files App: install netflix and disney+ if needed.
10) OTHER APPS
- You can use GPS Status & Toolbox for faster GPS fix.
- Developer options
Settings > About phone.
Tap 7 times on build number.
Back to Settings > System > Advanced > Developer options
Select USB Configuration > set MTP
Set Windows animation scale, Transition animation scale and Animator duration scale to .5x
That's it.
Enjoy ;-)
djibe
Thanks: @BadDaemon, LineageOS team, TWRP team, BitGapps team, TopJohnWu (Magisk)
Thanks for this updated tutorial. I might be like a lot of others who only recently purchased this smartphone. I think they cost a little more now then the $34.95 I paid a month ago.
Huawei Honor 5X 4G LTE Android 5.5" Dual-SIM 16GB Unlocked Smartphone 886598039147 | eBay
Find many great new & used options and get the best deals for Huawei Honor 5X 4G LTE Android 5.5" Dual-SIM 16GB Unlocked Smartphone at the best online prices at eBay! Free shipping for many products!
www.ebay.com
I originally purchased to I could try the freemobile SIM, but unfortunately it requires VOLTE. I also tried T-Mobile data only SIMS with it, but they seem to be shut down as I am still using the stock image.
I opted to use Ministry of Solutions as it was only $4 and DC seems to require the user to go through a process and Ministry of Solutions pretty much does all the work. The process just required me to do the following:
Go to their website and pay $4 via paypal for the service,
Contact them to let them know you paid for the service and schedule a time to get it done. I just used email.
Install teamviewer and provide the access information for them to access your system remotely.
Be available to configure the phone so they can do their work.
Wait for them to get done with the process and provide the unlock code for you.
The unlock code will also be included on paypal upon completion of their work.
So far I have only unlocked the bootlader and installed TWRP and will finish the process when I have time. I am just happy to have noticed that this tutorial is up to date and has links to all the resources needed to do the upgrade.
Hi @comm-ents, thanks for sharing.
I would not let anyone come on my computer but it is nice to have this alternative.
This phone is still damn cool, even though Honor closed their unlock site.
djibe89 said:
Hi @comm-ents, thanks for sharing.
I would not let anyone come on my computer but it is nice to have this alternative.
This phone is still damn cool, even though Honor closed their unlock site.
Click to expand...
Click to collapse
I wasn't too concerned as I currently use Linux Mint for work and Windows mostly for playing games so there isn't much there to compromise. I will be using them again if needed as they only did what was needed to get the code. I am pretty sure that a copy of Windows installed in Virtualbox would also work for increased security.
Just be aware that most compromised information isn't done while you're watching but behind the scenes so you're always taking a risk when connected to a remote site.
I suppose not having to pay $4 to get the unlock code would be nice, but it is just $4 to get even more benefits out of a very inexpensive dual SIM phone. Maybe if I am lucky it will be even more useful once I replace the Stock ROM with something a bit more up to date.
I am not able to install the lineage rom as I just get an error.
updater process ended with error 7 with my KIW-L24. I also tried to remove the assert lines as some instructions suggest should be done and it looks like the install went ok, but It ends up in a boot loop.
After trying the process twice just in case I made a mistake, I found that but removing the assert lines from the file, the install seems to complete, but I am no longer able to use TWRP from the phone as the touch screen doesn't work any more and Lineage doesn't boot either.
The only reason I can think of that the install doesn't work is because there is something that is different about the phone I have like it is a newer revision. It seems that the partition sizes might be different and when I remove the assert lines the install just writes to a partition that is too small to hold the data and it ends up overwriting itself so it is basically corrupted in the process. Just a theory, but I haven't had any luck with anything but the stock firmware.
comm-ents said:
I am not able to install the lineage rom as I just get an error.
updater process ended with error 7 with my KIW-L24. I also tried to remove the assert lines as some instructions suggest should be done and it looks like the install went ok, but It ends up in a boot loop.
After trying the process twice just in case I made a mistake, I found that but removing the assert lines from the file, the install seems to complete, but I am no longer able to use TWRP from the phone as the touch screen doesn't work any more and Lineage doesn't boot either.
The only reason I can think of that the install doesn't work is because there is something that is different about the phone I have like it is a newer revision. It seems that the partition sizes might be different and when I remove the assert lines the install just writes to a partition that is too small to hold the data and it ends up overwriting itself so it is basically corrupted in the process. Just a theory, but I haven't had any luck with anything but the stock firmware.
Click to expand...
Click to collapse
Sure of your model ?
Info about kiwi | LineageOS Wiki
wiki.lineageos.org
djibe89 said:
Sure of your model ?
Info about kiwi | LineageOS Wiki
wiki.lineageos.org
Click to expand...
Click to collapse
Yep. Model number KIW-L24.
comm-ents said:
Yep. Model number KIW-L24.
Click to expand...
Click to collapse
Format Data
Wipe all partitions
Reboot recovery
Flash
Leads to Error 7 ?
djibe89 said:
Format Data
Wipe all partitions
Reboot recovery
Flash
Leads to Error 7
Click to expand...
Click to collapse
Yes.
The first issue is that when I try to format Data I get: Unable to wipe '/data' -- unknown file system 'auto' Unable to format to remove encryption. I found a suggestion to format the /data partition manually from adb shell which works.
The Lineage from wasn't the only Install I the error 7 with though as ResurrectionRemix-M-v5.7.4-20161220-kiwi also gave the same error 7.
Now the touch screen isn't working again in TWRP because I accidentally installed the wrong version of Lineage. with the assert lines removed. It would be nice to know how I can do a restore from the command line, but the TWRP command line guide isn't much help. It is just too much of a PITA that once I can get stock back on it I will just sell it while I'm ahead.
Sometimes you have to manually reformat.
Go to Wipe > Advanced wipe > Cache > Change partition
Too bad you didn't succeed
I was able to unlock the boot loader and still have a rooted phone. What I had hoped to do is use it with a T-Mobile data only plan and a SIM from FreeMobile provides a few hundred minutes a month for free.
I don't know why I get the Error 7, but you can't just remove the assert lines as the install might seem to have worked, but that is only because it just proceeds to install even though there might be something wrong and the install just messes up the phone.
I am still using the phone right now to test as a hotspot. The real reason that SIM didn't work in the phone is because of something on T-Mobiles end so it actually works in the phone now and since it is rooted I can make other changes that actually allow it to work as hotspot without limitations.
I should be able to find another dual SIM phone that can be rooted, but I am not sure there is anything that also supports Volte.
Is there otherway to unlock bootloader without paying 4 dollar. My country has restriction. i cant pay.
neysariy said:
Is there otherway to unlock bootloader without paying 4 dollar. My country has restriction. i cant pay.
Click to expand...
Click to collapse
No way.
Or tell us if a miracle happened
In djibe Honor 5X pack, you said it contains Huawei USB drivers x32/64 but i didnt found it. Only driver that worked is:
Support area | files.dc-unlocker.com
files.dc-unlocker.com
Please add to your pack if you forgot that
In my phone there is not "unlock oem" option. What shoud i do. It that important?
Dc unlocker say error conection to server. I dont know why.
I'll dig into it. Thx
This guy in telegram can unlock bootloader of huawei phones very fast @fullkade_huawei_support
.
neysariy said:
In djibe Honor 5X pack, you said it contains Huawei USB drivers x32/64 but i didnt found it. Only driver that worked is:
Support area | files.dc-unlocker.com
files.dc-unlocker.com
Please add to your pack if you forgot that
Click to expand...
Click to collapse
Pack updated with USB drivers. Sorry for that