[Project] Huawei Recovery MITM - P8 Lite (2017) Discussion

About the project
This is a Asp.Net Core Web Api endpoint providing a replica of the Huawei API to get the recovery / update service to actually work.
It works using a local DNS server to redirect the phones traffic to the local API offering the desired firmware infos.
I only tested it against the PRA-LX1 right now but it should be the same for every Huawei phone.
A basic guide and the code are available at the GitHub repository.
Looking for a Linux human helping me adding a startup service executing a script with some commands!
Also need a macOS user to help me write a Installation guide for that system. A Hackintosh just isnt the same.
GitHub repository:
https://github.com/Iocere/HuaweiWebApi
Windows installation guide
Things I'm working on
Spoofing the other endpoints
True independence of the official recovery servers
Adding a GUI if when .NET Core finally get XAML support or make use of Electron or a local website but I cant be arsed :/
Ease of use
Changelog
07.12.2017 | Resivion 6
- Added a preconfigured VirtualBox Image containing Ubuntu Server with recovery server. You can find it on the GitHub.
- Added a proper Wiki and a better(?) guide to get it running on windows with use of the VirtualBox image.
06.12.2017 | Resivion 5
- Removed static IP address from the DNS server and moved it to the configuration file. Sorry!
- Updated the guide to fit to the changes.
Feel free to contribute.

Just got phone today and I'm PRA-LX1C432B115 firmware no updates when search out the box , but firmware finder says higher build B191 yet when check compatibility says not for device,
What does this do force updates or summit? Thanks
Sent from my PRA-LX1 using Tapatalk

With this you can force the update yes. The default version in this application is B110. After you restored to that one you can update normally to B182.
Or you try a different one like B191 but i cant guarantee that it's working. Our device in the files from huawei is also listed as L11 or something.
Edit: Found a bug. Updated the repo.

Related

[RECOVERY][tornado_348] TWRP 2.8.5.0 touch recovery [2015-02-27]

Team Win Recovery Project 2.x, or twrp2 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Phone look:
Tablet look:
CHANGELOG for 2.8.5.0:
-Scale the GUI - TWRP can read the theme's resolution and scale it up or down to fit the theme to your screen's resolution
-Backups can now be cancelled while the backup is in progress (does not include restore because we don't want to leave your device in a bad state)
-Improve thread handling and move input handling into the main rendering thread to improve stability
-Make MTP work even if unplugged and plugged back in
-Unify scrollable list code and make kinetic scrolling feel more natural
-Fix handling of mapped zip files for OTA updates (CM12 updater)
-USB keyboards should now work on all devices that support USB host mode via a USB OTG cable
-Other small fixes and improvements
CHANGELOG for 2.8.4.0:
-Add flashing of boot and recovery images via the TWRP GUI (Find the Images button on the Install page)
-Fix some MTP related crashes and bugs
-Eliminate TWRP toggling USB IDs during boot if MTP is enabled
-Fix various adb sideload issues
-Improve threading of actions
-Eliminate separate thread for screen timeout
-Update libblkid to 2.25.0
-Use power button as back button on watch themes for easier navigation
-Add mutex locking to data manager
-Improve custom theme handling on encrypted devices
-Allow the stock theme to be offset by build flags so we can center a lower res theme on a higher res screen especially for watches with round screens
CHANGELOG for 2.8.3.0:
-MTP will now tell the host PC that storage is removed instead of disabling MTP completely
-MTP will now report the correct max file size based on the file system in use to the host PC (may fix transfer of large files)
-Update and improve fix permissions and make fixing contexts optional
-Update SuperSU in TWRP to 2.40 and update install process
-Make TWRP work properly on AArch64 (Nexus 9 is now built in true 64-bit binaries and libraries)
-Attempt to set correct permissions and contexts on all files placed in storage so backups will show in Android
-Fix kernel panic during MTP start on some devices
-Support unicode fonts on devices with True Type Font support
-Fix slider value not showing sometimes (vibration settings page)
-Toggle MTP off during adb sideload to set correct USB IDs
-Reduce library requirements for 5.0 L decrypt
-Other minor fixes and improvements
Note: Starting with TWRP 2.8.2.0 and higher, adb sideload uses a new sideload method originally implemented in AOSP recovery. You will need the latest adb binaries to use sideload in these newer versions of TWRP. The version required is 1.0.32. You can find the version by running "adb version" on your computer. The new sideload feature no longer stores the zip on your device. Instead, a fuse file system is created in RAM and the zip is streamed from your computer. This puts less wear and tear on storage and ensures that large zips will not fill up all of your RAM. The sideload may spit an error on your PC side, but the zip should install just fine on your device.
CHANGELOG for 2.8.2.0:
-Pull in all changes from Android 5.0 lollipop into TWRP
-Add decrypt support for Android 5.0 lollipop encrypted partitions including automatic decrypt when the default_password is in use
-Revert some changes to exFAT that were breaking exFAT support on some devices
-Other minor fixes and updates
Note: At this time we do not have a GUI representation for pattern unlock. You can still decrypt patterns though by translating the pattern dots to numbers. The pattern dots correspond to numbers in the following pattern:
1 2 3
4 5 6
7 8 9
So an upper-case L would translate to a password of 14789 entered on the keyboard. Eventually we plan to add a proper pattern unlock to TWRP but it is a relatively low priority at this point.
DOWNLOAD:
Most devices can be updated quickly and easily with the TWRP Manager app:
Play Store Link
1) Install TWRP Manager from the Play Store
2) Open TWRP Manager and provide root permissions
3) Hit Advanced->Install Recovery
4) Verify the correct device name on your screen then press Install Recovery if the correct device is showing
OR:
You can find more information and download links on our website!
BUGS:
If you have found a bug, please consider posting it to our github issues log. It's pretty much impossible for us to keep up with the more than 40 threads that we have for the devices that we "directly" support. If you have a significant problem that cannot be answered in this thread, your best bet is to PM me directly, contact us via our website, or find us in our IRC channel below. If you see someone that's struggling, feel free to point it out to us. We need your help to help us keep track of all of our devices! Thanks!
SUPPORT:
Live support is available via #twrp on Freenode with your IRC client or just click this link.
You should be able to root using Kingo App or through this towelroot port: http://forum.xda-developers.com/not...t-adb-ghettoroot-v0-1-towelroot-port-t2864125
Device specific page with install instructions.
Mirror with all current and past TWRP versions.
I am wondering why TWRP official site only carries US based models? Whereas we in Asia have a whole multitude of TWRP versions for hundreds and hundreds of models. Even if it is not officially released by TWRP Team it should at least have another "sponsored" site for TWRP collected all over Asia and have its own depositories.Then the official TWRP sites would pales in comparison if somebody would have collected TWRP from unofficial sources. I am using TWRP recovery strictly on my ROMs and only as last resort CWM.
This TWRP official site doesnt do justice to itself and you expect users /modders to download TWRP Manager App from Playstore when we all know that we would never ever find the TWRP version for our devices.??
Please support s4 mini sprint (sph l520).
cracktech said:
I am wondering why TWRP official site only carries US based models? Whereas we in Asia have a whole multitude of TWRP versions for hundreds and hundreds of models. Even if it is not officially released by TWRP Team it should at least have another "sponsored" site for TWRP collected all over Asia and have its own depositories.Then the official TWRP sites would pales in comparison if somebody would have collected TWRP from unofficial sources. I am using TWRP recovery strictly on my ROMs and only as last resort CWM.
This TWRP official site doesnt do justice to itself and you expect users /modders to download TWRP Manager App from Playstore when we all know that we would never ever find the TWRP version for our devices.??
Click to expand...
Click to collapse
I do appreciate your comments. Please allow me to add a few of my thoughts. TWRP is an open source project. When we set out to build TWRP we decided to make it open source in the beginning because we knew that being open source would allow the project to grow and spread much faster than if we tried to keep it closed source. We know that being open source would lead to lots of unofficial builds. The high number of unofficial builds was exactly our intent and we are happy to see so many unofficial builds out there.
The bulk of TWRP development is done by 2 to 4 people. The core work of building official TWRP and adding new devices is the work of only 2 people: myself and bigbiff. Both of us are located in the USA so it's only natural that the supported devices will have a strong trend towards USA devices. We are open to working with other developers to add devices. Many of the devices in our officially supported were added with the help and assistance of other developers like yourself porting TWRP to their device. After those developers port TWRP to their device, they contact us and supply device trees and testing so that we can add that device to our official list.
If you have a device that is not officially supported, feel free to port TWRP to the device, then supply your device tree to us so we can get it added for official support and continue to release new updates of TWRP for the device. We can't afford to buy all of the devices ourselves and many of the devices aren't available in our country anyway. We depend on the support of other developers to help reduce the burden of support and porting. Reducing this burden also helps us focus on what we do best: adding cool new features to TWRP for everyone to use.
We aren't going to take the time to comb the Internet for TWRP builds that may or may not work and that may be incomplete or improperly done. Many of the posts of these unofficial versions are in other languages that we cannot read without translation. We try to maintain a high quality product and it would be a bad idea for us to do this, especially when we would have no way to fix the problems.
I can confirm that we are working towards supporting multiple languages within TWRP. My hope is that the additional language support will cause TWRP to spread even more and reach more people who are unwilling or unable to use a TWRP that isn't in their native language. I'm also hopeful that more developers will reach out to us to add their devices and that more people will get involved with translating TWRP to other languages.
Thanks for your response! at least I know that the TEAM is an open source , open minded TEAM. I am not a developer per se as you all are ( I consider you all as the Gurus and I am just half a student) We need to have a depositories of all the versions thats flying around out there ( the bad side to the open source approach is when somebody made a blunder out of the Recovery but using the "TWRP" brand) like I recently experience when I tried to wipe dalvik-cache/cache it corrupted and removed with "root" and system partition. Luckily I had another backup and was able to use that version to RESTORE but after that I told my users to uninstall the so called TWRP 2.8.0.0 and revert back to 2.7.1. This would tarnish the TEAMS name as I exclusively port my ROMs with only TWRP 95% of the time. Anyway thanks again for your response , maybe I will set-up a depositories of TWRP and link up with the main TWRP depositories.
---------- Post added at 06:34 AM ---------- Previous post was at 06:18 AM ----------
I dont want to recommend Kingoroot/or other one-click root other than Vroot since it doesnt have any funny name files scattered all over the system folder (for example KingoRoot uses the name KingoRoot.apk as the Superuser app this might cause some problems when other Superuser app needs to replace another "Superuser.apk" app and in the xbin folder , instead of "su" binaries (be it Chinese "su" or otherwise) the Kingoroot renamed it "ksu" and that files are sometimes also left in the "bin" folder and they becomes orphan but operational files. (Maybe I got the names wrong but I know that KingoRoot doesnt follow the normal naming rules) Whereas Vroot/iRoot (as it now called) uses "Superuser" and "su" nomenclatures for easier recognition by e.g Chainfire SuperSU = "Superuser" and "su" binaries. and dont leave behind any orphan files. Vrot/iRoot has 98% success rate in rooting unrootable devices as I had experience. No need to test out any exploits just one-click root from PC and within 3-5 minutes you're all done!
Kazam Tornado 348 AKA. BLU Vivo Air AKA. Gionee Elife S5.1
Someone can check if that can RUN with BLU Vivo Air or Gionee Elife S5.1 ... Because Tornado 348 is EXACTLY THE SAME PHONE... Just a RE-BRAND to can be more Likely to a specific market =D
Gionee -> Asian/ Chinese Market
BLU -> North/South America
Kazam -> Europe Market i Think...
Anyone can check the reviews... SAME OS, SAME HARDWARE, SAME PHONE... ;D (I Will replay that on BLU Vivo Air General Topic)
I've had no luck getting twrp to work on my gionee elife s5.1
Tried flashing with mobileuncle, fastboot and "dd" through android terminal.
After flashing, a reboot to recovery just boots to fastboot...
-- edit --
Twrp manager app is still a no go -although it seems to be playing nicer after replacing the iroot/vroot superuser with superSU, the recovery partition location warning before installing is simply /dev/recovery. This is not the location on my device...
-- end edit --
The Chinese cwm for the gionee s5.1 floating around out there does work for me. Flashed it in fastboot...
The driver you used to get fastboot work is from where?.. We stay making a huge progress with Blu Vivo Air topic... The ideia is fuse kazam tornado menu topic with blu vivo air menu topic... And we stay in touch with Russian developers from 4PDA too... They have some news and i think their MiUi v6 work with your Gionee phone ;D
I can't find Kazam device in the TWRP Manager . Now I don't know how to install the recovery
Hello . Any other way to install twrp as i have a locked phone . Cant remove passcode. I had it laying around for some time and i cant find the password. Any idea ? thank you

Lineage OS use experience on MIX

Lineage OS use experience
1. Development used in the final version of the ADT, found after upgrade 7.0,logcat does not println log ,enter USB-driver ini add VID but not work ,finaly use eclipse install ADT offline zip or AS work;
2.USB ehernet and wireless sharing not work ,no one mentioned 。kernel of this piece I do not understand ,xiaomi github kernel code havenothing,MIX repair package 5、6 actually repair the kernel ,Wonder how these great gods how to find up the package up
3. Telecom in the 2 card I tried to change build.properties、 * # *#4636# *#* into the engineering model set the preferred mode ,but no matter how the restart will fall to register the network ;
4.NFC is not available
5. Fingerprint in Alipay is that is not available,but I see ZUK machine support do not know how to achieve
6.magisk there are several modules such as open google assistant that I tried it is possible
In fact, the kernel how to build is most important

[MODULE] Aria2 wrapper for android (arm)

# Aria2 wrapper for android
### rms112 @ xda-developers, scripts provided @ GNU GPL 3+ or later. Aria2c binaries are GNU GPL 2+
*A simple download manager shell script using aria2*
### Description
I hated the download managers in android because every one of them is closed source, ads and analytics infested. Aria2 is my favorite tool in GNU/Linux which is available in Android too.
The binary was taken from:
https://github.com/aria2/aria2/releases
This wrapper was written to avoid the hassle of writing commands every time while using aria2. Simply flash from magisk and reboot. Then enter
Code:
download
in a terminal emulator and you're done. I recommend making a profile in connectbot (local) with download + enter key in automation post login command and save that profile as a widget for easy access. See screenshots.
This is very basic script. Since nobody was doing it, I did it myself and I'm not even an android dev. It was for my own use but i hope it will be useful to someone else too. Anyone willing to improve this tool are more than welcome to do so. More features for easy customisation to come later...
Oh and yeah the installer script is based off osm0sis's modules.
--reserved post--
I've never used linux before .. So don't know how to operate it but can you specify steps how to start downloading and specify downloading path and it only support direct link downloading.. Right?
I've termux installed on my Android phone.. And if support would be provided then it'll be best download manager out there.. Your thread looks promising about it..
aria2 is my favorite downloader manager too.
we can use multiple source to accelerate download and you can resume downloading. the advantage using it in terminal it's stable no crash.
big thanks to the developper of this module i'm installing it
adikri said:
can you specify steps how to start downloading and specify downloading path and it only support direct link downloading.. Right?
Click to expand...
Click to collapse
Just enter "download" in any terminal emulator. The location is set to /Download folder on your internal memory. And a bunch of other parameters are set by default for eg : download is resumed by default and you can have up to max 10 connections if supported by server. You can open download from /system/bin and check/edit/add other parameters.
I've termux installed on my Android phone.. And if support would be provided then it'll be best download manager out there.. Your thread looks promising about it..
Click to expand...
Click to collapse
Termux might have aria2 on repository idk but I prefer to use connectbot because of low storage on my phone. Termux takes ~100mb and I don't use anything except ssh which is done easily by connectbot 2mb package. I automate the script by setting 'download + enter' in local connection's post login automation and set that as a widget. Might look confusing but really isn't. Here's a video demonstration. (16 sec) https://my.mixtape.moe/tzpyzw.mkv
Some screenshots for connectbot settings.

OUTDATED! [Project] Galaxy OStool

#####################################################################################################
This project is outdated! If you were interested, stay tuned on latest posts on my profile. A totally re-coded and re-designed version of this tool will be rolling out soon!
#####################################################################################################
---------------------------------------------------------------------------------------------------------------------------------------
First of all I must admit, that i can't create a DevDB post instead (I don't have permissions, or something).
--------------------------------------------------------------------------------------------------------
Recently, i used Androxyde's Sony FlashTool, and I had an idea to create something like this, but for Samsung devices.
That's how Hackaye's Galaxy OStool was created.
It's based on VB.net and Heimdall CommandLine.
You may ask: Mate, but what the heck is it for? We have Odin and Heimdall Frontend!
Yeah, but can Odin and Heimdall download firmware for your device and install it with one click?
Do they have One-Click Root and TWRP installation options?
I guess not.
The app is currently available for Windows users, and requires latest .NET Framework installed.
---------------------------------------------------------------------------------------------------------
How to use the OStool:
Choose your device from the list (currently only Galaxy S5 SM-G900F but if the project gets some fame, i'll add more )
Then click what you want to do, you can choose Repair/Re-stock, Rooting with Chain Fire's AutoRoot, or installing TWRP.
After selecting, the program will download all the necessary files from my MediaFire account, and will notify you, that it's ready to flash.
You will be instructed how to go to download mode (the program is directed to begginers, so i had to add that), and will prompt you to install Zadig drivers, if needed.
Then after clicking the red "FLASH!!!" button, a CMD windows will appear with heimdall running, informing you about the installation progress.
----------------------------------------------------------------------------------------------------------
Some info about the project:
I am open to contribute with anyone that has knowlege about VB.net coding, i am also looking for better server to host files on, so please tell me if you know about one
Also, I couldn't test the program, cause my PC is autistic, and I can't install the necessary Zadig drivers, which ends with Libusbx error -12 (PLEASE HELP ME HOW TO FIX THIS!!!)
You should also know, that this version is only for testing the engine, the GUI will be TOTALLY redesigned.
If you want to contribute, download the SPECIAL Dev Pack from the link below. If you only want to test it, download a standard setup.
That's all from me,
Hackaye (WHY I CAN'T CHANGE MY NICK FROM EUKON TO HACKAYE?!!)
----------------------------------------------------------------------------------------------------------
Download Links:
OStool v0.1a Standard Setup: bit.ly/2LSRz9T
Dev Pack link (You need to have standard version installed first!!!): bit.ly/2O6jrVn

Compiling Code from older Android Studio / Gradle / React Native Version errors

Hello All,
I am new with programming for Android and could use some help compiling someone else's code I have as I am attempting to test a older App for educational use and debugging experience. I have not yet been able to get the code to run, and I have done some searches and tried a few approaches already without luck so I am just hoping someone may point me in to the right direction of what I am missing.
I believe most of my issues may lie in versioning of old dependencies so I have been trying to compile with older version of Android Studio (as well as current version initially) along with matching versions of Gradle and React-Native, all without luck. Here are the version details I can see from the code...
From looking at the code I know it is using:
React-Native 0.53.3
Yarn Package Manager
Gradle 2.2.3
From Top level build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
....
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
From sub level build.gradle:
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
From gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
At this point I have multiple copies of the code that I have tried different gradle versions and react-native versions along with current and older Android studio with a plethora of different compile issues with each setup that I have not been able to solve so I think it may be best for me to start again with a clean version of the code as a new AS project, and I hope some of you more experienced guys might be able to point me in the right direction for setting this up to get it to compile.
Should I try again to match the original AS version, Gradle Version, and React Native version the code was written for? Is their anything I am missing or just try to compile from there and debug errors that arise?
I just did a Quick test on Studio 2.3.3 - I select import gradle and select the build.gradle from the source code.
Error79, 0) Could not read script 'C:\...\node_modules\react-native\react.gradle' as it does not exist."
I then run npm install in project root directory
Sync Gradle Build and run I get:
"Unable to load script from assets 'index.android.bundle' Make sure your bundle is package correctly or your running a packager server"
Build errors on Studio 3.3.1:
> "ERROR: Could not get unknown property 'mergeResourcesProvider' for
> object of type
> com.android.build.gradle.internal.api.ApplicationVariantImpl."
Any help and suggestions are truly appreciated!

Categories

Resources