[DEV] Lets start developing for the M4 - Sony Xperia M4 Aqua

The lack of custom roms for our device is depressing, there aren't enough developers for the M4 aqua and while some have moved on to other devices, others don't share their REAL sources and fixes. So what i propose is that we all join forces and do it ourselves, the more people the better it brings different points of view and consequently faster fixes, so for those that are interested here are the prerequisites:
1. A computer
2. A linux distro (most guides will advice you to go for ubuntu or a buntu based distro personally its not my cup of tea, i use gentoo but linux is about choice you choose what suits you. Also if you want to keep your windows you can either dual boot(recommended) or just use a virtual machine which depending on specs it can be slloooww).
3. A starting point (most people don't even try to compile android because they wont even know where to start from, thankfully sony isn't as bad as others and even provides detailed information on how to compile android for their devices, so i suggest to start here http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/ )
4. Time (compiling times can take very looonnnggg)
5. Patience ( yeah a hell lotta of it)
Still interested?
We can use this thread to post compiling errors , bugs, errors and any android developing related questions, if instead of aosp you want to jump straight to cyanogenmod the instructions are very similar just replace "repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r10" with "repo init -u git://github.com/CyanogenMod/android.git -b cm-13.0" xda also has some very useful threads we can use here are a few:
1. Compiling roms:
CM - http://forum.xda-developers.com/showthread.php?t=2060017
PAC - http://forum.xda-developers.com/showthread.php?t=2662325
2. Debug
Create logs - http://forum.xda-developers.com/showthread.php?t=2185929
Understand them - http://forum.xda-developers.com/showthread.php?t=2274119
Every great dev had to start at some point this might be start of some great devs (we need them), so lets start compiling and bring the marshmallow to the tulip!!!

We have a few custom roms that just need bug fixes. We will get better as time goes on. And would we see a rom of yours anytime soon?

I don't find the m4 binaries in this page http://developer.sonymobile.com/knowledge-base/open-source/open-devices/list-of-devices-and-resources/

Hello guys, as much of you know, I tried so many times to compile roms for our device, but never had success. My device for now enter in a "bricked fastboot" mode, and in flashmode Flashtool say that the device have debugging off. Totally bricked. But, I will never give up with my work for this device. I will make roms for you guys and for my experience, also if I cannot test. So, I installed Ubuntu in my PC, I am syncing the sources and this time I will try very hard! Thanks CarDGee for your post, it will be helpful for errors.

So, what would be our requirements knowledge wise? What programming language base, etc?

Any kind of knowledge of programming language can be useful, but is not needed.

alby_var said:
Hello guys, as much of you know, I tried so many times to compile roms for our device, but never had success. My device for now enter in a "bricked fastboot" mode, and in flashmode Flashtool say that the device have debugging off. Totally bricked. But, I will never give up with my work for this device. I will make roms for you guys and for my experience, also if I cannot test. So, I installed Ubuntu in my PC, I am syncing the sources and this time I will try very hard! Thanks CarDGee for your post, it will be helpful for errors.
Click to expand...
Click to collapse
I think at this point it would be smart to collaborate on a custom rom (probably CM 12.1 because it is closest to stable) so we have a base to develop more roms.

For now I'm working to build AOSP 5.0

I followed the instructions to build AOSP at developer.sonymobile.com
At point 4. it say
Find the software binaries for the device you want to use on Sony’s AOSP for Xperia devices
Click to expand...
Click to collapse
Now i have downloaded the binaries for the M2. It have the Kanuti and Tulip folder inside.
Can i use it for build or do i have to extract the files from the device?
Second question is. I can remove other devices from local_manifests.xml right?

You can also use GitHub sources and put them into android sources with git clone, with this method also if you edit files, you'll not have problems with repo sync.

@dani020110 download the Z5 ones inside the zip you will have kanuti and tulip folders as well.
@alby_var what do you mean "bricked fastboot" is it constantly with blue led on? have you tried holding powerbutton + vol up until it vibrates 3 times?
@jefins although its a plus to know C java etc.. its not a requirement i am a strong believer that you learn by doing it.
@jtg01 yes use the ones from the zip also take a look at this repo https://github.com/SonyAosp you can find the binaries there under platform_vendor_sony and platform_vendor_qcom.
Now i regret not having done one of those "Reserved" on the second post.....

@alby_var what do you mean "bricked fastboot" is it constantly with blue led on? have you tried holding powerbutton + vol up until it vibrates 3 times?
..
Click to expand...
Click to collapse
The device , on a pc without drivers is recognized as qhsusb_bulk. It is recoverable, but any tool doesn't recognize the smartphone.
On a pc with all drivers it is recognized sometimes as SOMC FLASH DEVICE, other times in SEMC FLASH DEVICE. Also this is recoverable, but Flashtool says that the device have debugging mode off. (I cannot boot to the rom to activate it.)
And the only led that the device show is red, it bright up 3 times only when the battery is at 0%

alby_var said:
The device , on a pc without drivers is recognized as qhsusb_bulk. It is recoverable, but any tool doesn't recognize the smartphone.
On a pc with all drivers it is recognized sometimes as SOMC FLASH DEVICE, other times in SEMC FLASH DEVICE. Also this is recoverable, but Flashtool says that the device have debugging mode off. (I cannot boot to the rom to activate it.)
And the only led that the device show is red, it bright up 3 times only when the battery is at 0%
Click to expand...
Click to collapse
Do you have the correct flash and adb drivers on your pc? My second phone is a xperia E4.i had the same problem with SEMC and SOMC.i thought that it was bricked but the problem solved when i installed adb and flash drivers from the flashtool drivers file.

I installed all drivers that is on the Flashtool Folder trought the exe, but Flashtool not start flashing...

So i compiled the sources and got a system.img and a userdata.img in out/target/product/generic ?
I think there have to be a boot.img. Do i have to compile the kernel as well? Cause instructions on sony developer say the repos contain a precompiled kernel.
@alby_var: which version of flashtool do you use? Had also problems to flash firmware on newest version. So i installed Flashtool Version 0.9.19.7. With that it worked fine.

@alby_var try the linux version of flashtool
@jtg01 there must be something wrong because it should be out/target/product/e2303 or out/target/product/tulip did you choose our device after source build/envsetup.sh && lunch? because i believe you just compiled generic android.

Compiled android 6 for 2303, attached the Make log Below. (Pure Sony AOSP)
yet to flash the images and check.
made a small change, the userdata.img is for 16GB as i have a M4 Aqua Dual (E2363) the device should be able to boot up, will add logcat when i have it.
Lots of warnings but was able to make successfully
open the log in notepad++
Edit: First attempt to boot, loops at Sony logo.
will make fresh and check again

@jtg01 there must be something wrong because it should be out/target/product/e2303 or out/target/product/tulip did you choose our device after source build/envsetup.sh && lunch? because i believe you just compiled generic android.
Click to expand...
Click to collapse
Yeah there was a problem. Now it compiled all img's . But userdata.img has only 70 Mb. System is 900 Mb.
Should i flash this?
Edit:
Flashed it got bootloop. Can't take a logcat cause it restart at Sony logo.
But i get a kernel_boot_log. There are multible errors. Maybe someone can help me with that.

Guys I not know how to adapt device sources to the rom for that I am building.. Can anyone please help me?

@RohitBopnna and @jtg01 for some strange reason newest firmware doesnt allow you to flash custom firmware you will have to downgrade to .128 and then flash your roms i am sure it will boot, follow the instructions on Jeffreyvh aosp thread http://forum.xda-developers.com/m4-aqua/development/aosp-6-0-e2303-t3271380
@alby_var I think you should start by compiling something we already have the sources see how it goes, and then move on

Related

[Q]Can't install fastboot mode usb driver to unlock xperia pro

So I've been following the bootloader unlock instructions on the Sony-Ericsson site and when I have plugged the phone in and the instructions say it should ask me for drivers it just plays the driver install failed noise, so in device manager I have the S1Boot Fastboot listed but when I point the driver update wizard to the adb folder where the driver is it just says it cannot find it. Anyone had an issue like this or knows how to fix it or have I done something completely idiotic because it's 6am and I haven't slept for 2 days?
you need the google usb drivers (android sdk) good luck !
Yeah I got past this bit and have the phone unlocked now but during the proccess my camera, lockscreen and a couple of other bits have stopped working and I can't simply revert back to the original software as sony's tool won't allow that. Also can't find a clockworkmod recovery image for the device so have no clue how to put the cyanogenmod nightly that's out on.
Can't you use flashtool to flash a stock rom ?
Yup, all recovered now.
It would be much better if this most essential of sites for people mucking around with there android phones had a section for the Xperia Pro, there are already plenty of threads for the device but they are spread over every other Sony section and makes finding the thread that will help quite difficult.

A13 Boxchip CM9/CM10 Development

I now know the Allwinner A13 is a stripped down version of the Allwinner A10, to be clearer the specifications of my Tablet (from UniFlash and AnTuTu Benchmark) are as follows:
Manufacturer: None
Brand: softwinners
CPU hardware: sun5i
CPU model: ARMv7 Processor (VFPv3, NEON)
CPU frequency: 60.0 ~ 1008.0 MHz
Screen resolution: 800 x 444
GPU vendor: Mali-400 MP
GPU version (OpenGL): OpenGL ES 2.0
RAM size: 512 MB DDR2 RAM
Knowing this, I used UniFlash to make a backup of the firmware bt after using UniFlash to try and load a CM9 Rom on to the Tablet, the Tablet died. After alot of googling I discovered AllWinner based chipsets use Live Suite (sometimes called LiveSuit) to flash firmwares on to the device.
To Flash firmware on to the device you need to follow the attached instructions ((http://dragondevs.com/viewtopic.php?f=159&t=390):
Download LiveSuite (http://www.softpedia.com/get/System/System-Miscellaneous/Live-Suit-Pack.shtml)
Install Live Suite
Start Live Suite
Select the Live Suite image file (folder icon
Turn device off (to be sure hold power button for 12 - 20 seconds)
Hold "Volume Up" button down
Connect the device to your PC (while still holding "Volume Up" down)
Start pressing the power button (you may need to do this once a second for 5/6 seconds)
If you haven't installed windows will ask to install a driver for a device (Dive Id will be something like Vf73465789123465435_Id, if the device is in the right mode, A13-MID, ADB-Interface indicates the tablet has connected in anouther mode).
Once this has finished LiveSuite will detect the device and a wizard will flash the firmware for you.
I have found a working firmware which according to AnTuTU Benchmark gives my tablet a rating of 3047 (see firmware section), this is on the higher end of reported A13-MID tablets
I have found out how to install CWM on to the device via SaussageMod (http://www.slatedroid.com/topic/29916-scriptmod-for-allwinner-a1x-platforms/). This solution is untested, further more it may be unnessary futher investigation has shown this website (https://www.miniand.com/forums/forums/2/topics/73) has developed a way of create Live Suite images. This is simplier than installing clockworkmod recovery,
I tried to load the following images on to my tablet and failed completely: http://forum.xda-developers.com/showthread.php?p=31043317 It didn't work and forced me to do a firmware refresh.
My other step for the day was to create Ubuntu 10.10 installation then I began following this guide to construct an Xperia Play CM9 Rom/Kernel. once I have created a working ROM (I own an Xperia Play). I'm hoping to be able to modify the kernel to include the relevent A13 drivers, but one step at a time.
TODO
Create Ubuntu Partition
Follow Xperia Play CM9 Rom/Kernel Guide and create working rom (test on my Xperia Play)
Download CT repository (https://github.com/christiantroy) and compare with Xperia Play CM9 rom
Find the relevent drivers from https://github.com/amery/linux-allwinner leaked source
Retrieve offical MALI 400 MP drivers (parts of it have been released) compare with leaked source
Use UniFlash backup of original Rom along with LiveSuite image creation to try and restore original firmware (see If I understand it properly)
Examine Build.prop find out why original firmware displayed ina phone layout and new one is in tablet mode (potentially reference CM supported Tablets).
Attempt to compile a A13 (Sun5i) based rom
Create a google code page to hold all of these thoughts properly.
Left blank will include rom/firmwares here for future reference
Firmware
https://www.dropbox.com/sh/bzjt7mzuftwz79f/nt7mRMPDj1 - My public Dropbox
http://www.azhuo.net/en/products_A13B_Allwinner-A13_7_inch_Android_4.0_Upgrade.html - password is: tabletpc
http://dragondevs.com/viewtopic.php?f=159&t=390 - McPad F1 firmware
Novo 7 Tools
https://dl.dropbox.com/u/74970692/Novotools_v1.0.apk
SausageMod
http://www.slatedroid.com/topic/29916-scriptmod-for-allwinner-a1x-platforms
Gapps - http://goo.im/gapps/
I have the same tablet and it would be very cool if you succeeded in your attempt to create a CM9 rom for it. I tried ROM made by Tragidy from this thread but there is a problem with touchscreen driver, ROM booted successfully but I could not even unlock the screen cause touchscreen did not work. I finaly flashed rom DCPAD2121.zip using livesuite which I belive is the original ROM that came with tablet and it worked.
I installed clockwordmod using sausagemod successfully, but there is a big problem - no hardware "back" key and only volume up works.
novo7tools.apk works OK for reboot, reboot to recovery or shutdown.
syncing
Thanks, it's slow going at the moment, I only spending ~1 hour each day on it and at the moment trying to sync the CM9 source is painful (it keeps timing out, due to "remote side corruption").
I figure I would start there as all the firmware images I can find are ICS roms (meaning the drivers must be ICS).
Hi, I have the same tablet but I cannot find the firwmare DCPAD2121.zip
Could you upload it please? From dropbox has been deleted
Thanks
You should check this topic:
http://forum.xda-developers.com/showthread.php?t=1861445
WillingMagic said:
You should check this topic:
http://forum.xda-developers.com/showthread.php?t=1861445
Click to expand...
Click to collapse
I tried that ROM, on my tablet after flashing the ROM it got stuck in a boot loop. It might be an idea to steal the config he created. The ROM is pre CM9 release. The A10 Flash kitchen software seems to work. I was hoping on producing a complete Live Suit image that people could flash (figuring our what CT has done on the A10 took a while).
Still having fun trying to sync the repositories, given up on trying to use a Debian VM, I'll will install full Ubuntu on a drive tomorrow, hopefully that will help fix things. It doesn't help most of the guides I can find are out of date and I keep having to make corrections.
I've also uploading all firmware I can find to my dropbox (at 200mb each they will take a while), I won't with tools simply because others ask you not too.
The Dropbox firmware was out of date when I tried to download it sun5i_android_a13-pfdq88_en_D06 firmware worked well for me, the firmwares are located at: https://www.dropbox.com/sh/bzjt7mzuftwz79f/nt7mRMPDj1
Cyanogenmod 9 in not working for you. Did you made data and cache wipe? Can you send me logcat and dmesg output?
You can`t steal my config, you have to remember about credits, and other stuff.
Creating a wiki is useless, there is already wiki for allwinner products, so better update info on it.
Github is better than google code to keep sources.
Using Livesuit=Windows, I hate dual booting just for flashing, Clockwork Recovery or modified SDcard with uboot is better solution.
Current kernel is not working well, with sun5i.
Using VM is stupid, because building rom takes a lot of time on quad core pc without it.
WillingMagic said:
Cyanogenmod 9 in not working for you. Did you made data and cache wipe? Can you send me logcat and dmesg output?
You can`t steal my config, you have to remember about credits, and other stuff.
Creating a wiki is useless, there is already wiki for allwinner products, so better update info on it.
Github is better than google code to keep sources.
Using Livesuit=Windows, I hate dual booting just for flashing, Clockwork Recovery or modified SDcard with uboot is better solution.
Current kernel is not working well, with sun5i.
Using VM is stupid, because building rom takes a lot of time on quad core pc without it.
Click to expand...
Click to collapse
I wiped the caches I couldn't send a logcat or dmesg as the device simply boot looped.
I've been providing links to threads whenever I come across others work, I'm new to android rom development for me this is a research effort which will hopefully produce something cool for my £50 tablet. Basically my day job has switched to developing UI's and I am looking for something new to learn (instead of why is Vaadin, Guice, SWT, Javascript, etc... is putting that button there).
Said dev career has also made me hate Git with a passion (not as bad as perforce but still) since Git integrates poorly with Visual Studio and Eclipse and you end up getting everyone overwriting each others changes. The idea of google code is simply because it makes a good platform for projects and you can use things like git with it. I didn't know about an Allwinner wiki, with all of my Googling I haven't come across it, where is it?
I don't care about build times I'm just researching, alas Debian has caused me enough problems so I've installed ubuntu on to a old disk I had lying around. Considering I've just tried to install Ubuntu via a Net install CD and it has screwed up the GRUB installation (nicely taking out my windows partition as well) can you blame me?
The reason for nabbing the config (and the Xperia Play and Christian Troys) is to understand how they work. Over the years I've found most Open Source software documentation is poor unless you have a set level of knowledge about it already.
Lastly I like automation, I want things to just work. Livesuit does that since I am normally a windows user, I as hoping in the distant future once I understand the build process to set up a Jenkins server to do it and create the whole lot automatically (via the Allwinner flash kitchen). In the even longer term I would like to update FlashTool to do what LiveSuit does. In the near term (next couple of months) I just want to be able to build a CM9 image.
All android and kernel source are keep on git, so changing it is stupid.
This is allwinner wiki: http://rhombus-tech.net/allwinner_a10 you can also update http://elinux.org/Hack_A10_devices
Everyone use CWM and it's standard for unofficial firmware/ROMS
brandonlee2 said:
Hi, I have the same tablet but I cannot find the firwmare DCPAD2121.zip
Could you upload it please? From dropbox has been deleted
Thanks
Click to expand...
Click to collapse
Here's my upload, I packed it in rar format: http://www.mediafire.com/?we4zhgop29bg3dj
I also found it here: https://docs.google.com/open?id=0BzQuMwoMQqvba1VtQ1p1ZWJkR2M
from this forum post: http://www.slatedroid.com/topic/35314-a13-generic-tablet/page__view__findpost__p__421128
I built a CM10 rom for A13 from sources. It boots fine but hangs either at the Android setup wizard or sometimes even at the CM animation.
myfluxi said:
I built a CM10 rom for A13 from sources. It boots fine but hangs either at the Android setup wizard or sometimes even at the CM animation.
Click to expand...
Click to collapse
Mind sharing your repo ?
Trying 4.1.2
Hi all,
So I've tried compiling from 4.1.2 source for my A13 Emgeton Consul 3
It boots up and gets to the CM10 boot animation but it doesn't get past it.
I can adb at first boot until adb stops.
logcat from boot attempt:
http://pastebin.com/gLTrieHm
My build.prop:
http://pastebin.com/Ap9M1tjW
Any pointers as to why it doesn't get past the boot animation?
Hello guys! I know it's not he proper place here to pose my question, but I am definitely at loss!
Do you happen to know if there is a way of rooting this tablet? And if so, does everything work properly after that?
phoivos86 said:
Hello guys! I know it's not he proper place here to pose my question, but I am definitely at loss!
Do you happen to know if there is a way of rooting this tablet? And if so, does everything work properly after that?
Click to expand...
Click to collapse
Mine came pre-rooted.
Just received my MID A13 Tablet. Is this thread dead?
koodiifin said:
Just received my MID A13 Tablet. Is this thread dead?
Click to expand...
Click to collapse
I've gone a bit quiet on the development front, setting up a file/media server & samba domain server to power my home network is eating up my time.
My dropbox contains every image I could find for the tablet, as mentioned previously you can root the device using saussage mod, although my device and every one of those images is already rooted. You can prove this by installing super user.
Sassage mod's clockworkmod recovery doesn't work for me and I was looking at the backup tool in order to generate my own one. If you are aimed at any development, let me know and I will update the main thread
Many have said that they have "lost" "forget" to take backup from original rom. So, i'd like to have backup from my original to go back if/when something goes wrong. How do i do that? What software i need. Do i need to root?
This is from my info sheet:
Model TWD_MID
android version 6.0.1 ?????
Baseband 1.5
Kernel 3.0.8+
Buildnumber: nuclear_evb-eng6.0.1 IMM76D 20120917 test keys
I am in a desperate need for some help:
My tablets specs are these:
Phone model: A13-MID
Brand: softwinners
CPU hardware: sun5i
CPU model: ARMv7 Processor (VFPv3.NEON)
CPU frequency: 60.0 - 1008.0 MHz
Screen Resolution: 800 x 444
GPU vendor: ARM
GPU render: Mali-400 MP
GPU version (OpenGL): OpenGL ES 2.0
Memory size: 353.5 MB
Android version: 4.0.4
Build number: nuclear_pfdq88c-eng 4.0.4 IMM76D 20120821 test-keys
Kernel: Linux version 3.0.8+
I just installed OpenVPN installer and installed the OpenVPN binary in the system/xbin
After that I tried to connect to my university's VPN but when it tried to connect, the tablet lost wifi connection and ever since it doesnt connect to any available wifi network!! I manually deleted the OpenVPN binary, but problem remains!
Do you know where could I find the stock ROM for this tablet in order to re-flash it?
Do you have any other proposals? Anything will help!
Thank you very much!!

[Q] Is there a linux MTK flash tool just like the SP Flash Tool?

I am a Ubuntu Linux user. There has no Windows system on my computer.
Is there has a linux version MTK flash tools just like the SP Flash Tool for windows?
Thanks a lot.
hejian said:
I am a Ubuntu Linux user. There has no Windows system on my computer.
Is there has a linux version MTK flash tools just like the SP Flash Tool for windows?
Thanks a lot.
Click to expand...
Click to collapse
Hi! I don't know whether there is a linux version of Flashtool, but you may try to use Virtualbox to emulate Windows inside Ubuntu. I've been struggling the whole day to make it work with no success unfortunately. Flash process doesn't want to start. What is strange is that I've been able to flash my tablet (through a different tool), but not my phone (through flashtools).
Maybe some expert user may help us.
Sambaaa said:
Hi! I don't know whether there is a linux version of Flashtool, but you may try to use Virtualbox to emulate Windows inside Ubuntu. I've been struggling the whole day to make it work with no success unfortunately. Flash process doesn't want to start. What is strange is that I've been able to flash my tablet (through a different tool), but not my phone (through flashtools).
Maybe some expert user may help us.
Click to expand...
Click to collapse
I can get virtualbox to recognise my phone when its connected and turned on but not when its turned off like it needs to be for flash tool anyone know how to solve that problem
G.Ellis said:
I can get virtualbox to recognise my phone when its connected and turned on but not when its turned off like it needs to be for flash tool anyone know how to solve that problem
Click to expand...
Click to collapse
No, I haven't been able to solve it yet. That would be quite easy to use fastboot instead of Flashtools to flash stock roms, but unfortunately it seems like these phones do not support it.
Sambaaa said:
No, I haven't been able to solve it yet. That would be quite easy to use fastboot instead of Flashtools to flash stock roms, but unfortunately it seems like these phones do not support it.
Click to expand...
Click to collapse
MTK droid tools works fine in virtualbox it picks my phone up just takes a bit longer to find it
Sorry to bump an old and not very active thread, but I would like to ask this question again.
There is now an effective tool for the "other" series of Chinese SOC's - The Rockchip RK3066 RK3188:
http://www.cnx-software.com/2013/11/19/how-to-flash-rockchip-rk3066-rk3188-firmware-in-linux/
I used the above to flash a RK3066 Android HDMI stick, and it worked with no trouble at all on a current Ubuntu 14.04 machine.
It worked just as described, and it was about 15 minutes from a Google search to an updated Android Stick.
So my question is: Is there a similar tool yet for Media tech MT65XX chips.?
I do not have access to a Windows Computer, and I would like to be able to backup/restore/update/customize a MTK6589 phone without dealing with WINE, Virtual Box, Windows USB drivers, etc.
Thanks for any pointers in the right direction.
Yes it exists now : sp flash tool for linux
http://mtk2000.ucoz.ru/load/soft/soft_mtk/sp_flash_tool/5-1-0-14
Please, send this man the thank you train.
Also, suggest for front page (if it hasn't allready). This is front page news for Linux users and MediaTek phone owners alike.
Hi everybody,
great ! I'm a linux (not Microsoft at all) user and I was looking for such a tool too.
But, please, any documentation on how install it, experience of other users.... ?
Unfortunately I can't read russian !
I've got SP Flash Tool running in Ubuntu 14.04 now, I can't get it to recognize my phone though. It's a Doogee DG550, MT6592 chipset. Do I need to somehow install the Windows drivers, or what exactly do I need to do to get it to recognize my phone when I plug it in? I've tried running Flash Tool as a normal user and using sudo, made sure USB Debugging is enabled, not sure what else to try. Thanks in advance for any help!
Just run flash_tool.sh from terminal
@THE Ghost2: Have you tried it and succeeded?
Did any Linux user manage to make sp_flash_tool connect to the phone? The biggest success so far for me was to see the red bar completed, after that I get a BROM error 2035.
I added following lines to /etc/udev/rules.d/51-android.rules :
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="0003", MODE="0666", GROUP="udev", SYMLINK+="android%n"
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="2000", MODE="0666", GROUP="udev", SYMLINK+="android%n"
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="2001", MODE="0666", GROUP="udev", SYMLINK+="android%n"
SUBSYSTEM=="usb", ATTR{idVendor}=="6000", ATTR{idProduct}=="1004", MODE="0666", GROUP="udev", SYMLINK+="android%n"
(The different product ID's are for different download options. the last one is for the VCOM port, I found those in the usb-setting.xml file).
But it didn't help.
I found a way to run the SP_Flash_Tool_Linux now, thanks to Sergio Rivero at mibqyyo!
The problem is an incompatibility between the flash tool and Linux package "modemmanager". If you run:
Code:
sudo apt-get remove modemmanager
and
Code:
sudo service udev restart
the tool should work. In case module cdc_acm got disabled by the uninstallation, you can remount it by running
Code:
modprobe cdc_acm
Now everything should run smoothly if you start the tool:
Code:
sudo ./flash_tool.sh
And do not forget to reinstall the modem manager after flashing:
Code:
sudo apt-get install modemmanager
I've written a tutorial how to get the linux flash tool started in German for android-hilfe.de , will translate it to English this weekend and post it here
Miss Montage said:
I found a way to run the SP_Flash_Tool_Linux now, thanks to Sergio Rivero at mibqyyo!
The problem is an incompatibility between the flash tool and Linux package "modemmanager". If you run:
Code:
sudo apt-get remove modemmanager
and
Code:
sudo service udev restart
the tool should work. In case module cdc_acm got disabled by the uninstallation, you can remount it by running
Code:
modprobe cdc_acm
Now everything should run smoothly if you start the tool:
Code:
sudo ./flash_tool.sh
And do not forget to reinstall the modem manager after flashing:
Code:
sudo apt-get install modemmanager
I've written a tutorial how to get the linux flash tool started in German for android-hilfe.de , will translate it to English this weekend and post it here.
Click to expand...
Click to collapse
If there would be a way to push the "Thanks!!!" button more than once I would put it 100 times) Dude you won't even believe how much of a relief this is)
I'm very happy to read that! By the way, I modified the steps slightly in my tutorial (correct link).
The background is, that you can also blacklist the modemmanager for certain Vendor IDs. The downside: a bit more typing (or copy/pasting ) when you run the sp_flash_tool for the first time. The advantage: You don't have to remove modemmanager the next time
G.Ellis said:
I can get virtualbox to recognise my phone when its connected and turned on but not when its turned off like it needs to be for flash tool anyone know how to solve that problem
Click to expand...
Click to collapse
Its been more than a year since this. Are you able to find a way to recognize the switched off phone inside the virtualbox guest now?

[RECOVERY][TWRP][UPDATE] TWRP 3.3.0 for Maze Alpha 4G (updated)

Hi folks,
Today it's a great day for me : I have successfully patched the kernel to have a 100% working TWRP 3.2.1 for our Maze Alpha 4G.
I have port a Jemmini build for Bluboo S1 and I have patch the kernel to have a working touch panel
I have followed this Thead
For the Maze Alpha 6G version, you can test it and tell me please.
How to flash:
I Fastboot method (must unlock device) :
1- Reboot your phone in bootloader mode : adb reboot bootloader or phone off, press and hold at the same time POWER and Vol+ buttons
2- Connect your phone to your computer with adb/fastboot already installed
3- Unlock your bootloader : fastboot oem unlock (it will erase you data, only data)
4- Flash the recovery : fastboot flash recovery recovery_maze_alpha_4G_twrp-321.img
II SPFlashTool method (no need to unlock device) :
1- Download latest version of SPFlashTools.
2- Execute it and load the provided scatter (the recovery image must be in the same folder as the scatter and must be renamed to recovery.img) then press "Dowbload" button
3a- windows SPFlashTools users : phone off, press VOL+ and connect it to your PC (running SPFlashTool and waiting for phone connetion)
3b- linux SPFlashTools users : phone off and connected to PC , press VOL+ and POWER while your PC is running SPFlashTool (with sudo) and waiting for phone connetion.
Update : you can found here the latest version: TWRP 3.3.0 for MAze Alpha 4Ghttps://github.com/dreambo/android_device_maze_alpha/releases/tag/3.3.0
have a nice day.
Works great on Maze alpha 4G. Thanks.
But I forgot to save original recovery...
super_sonic said:
Works great on Maze alpha 4G. Thanks.
But I forgot to save original recovery...
Click to expand...
Click to collapse
You can get the original recovery from the stock rom designed for SPFlashTool, provided here
dreambo said:
You can get the original recovery from the stock rom designed for SPFlashTool, provided here
Click to expand...
Click to collapse
Thanks. Can you share stock recovery.img, if you have it? I have recovery-verified.img from V05 but I don't know if there is a new update and if size is correct: 11,54MB. Your TWRP recovery has got a size of 14.24MB...
Can you make a small procedure on how to install it? Will help many nOOb's out.
And people need to report back issues and successes !!!! Again I see many questions and people with issues that we seniors try to help out with that end up in no more response which to me is not done and not helping others.
I have a 6GB version that I could test on but at the moment I am using it for other stuff and I can't risk bricking it this week.
Would finally love to start some stuff happening on this phone.
Ok in the process of doing so on my 6GB/64GB version.
edit : congratz I now have a 'phone' that can only go into TWRP . Should have never ever done this!
Says no OS installed ... really nice
Edit 2: after hours wasted was able to get your zipped rom on the Maze but I got no boot with that TWRP, so flashed recovery-verified.img from the 6GB rom from Alpha I had downloaded ... It would then start up but show 4GB out of 6GB. No good but at least all the rest seemed to work. All other effort to get it going back with the proper kernel etc resulted in frustration.
So now to flash the official rom back via their tool... that one got me really frustrated and was completely my fault that I couldn't figure it out. But you know angry, frustrated, must get it back to work, can do this ... After all these years of toying with phones we are so used to pressing 'power and vol+ or vol-' together to make something work. Now in the end I re-read the manual again and saw that you only have to push vol+ and NOT vol+ and power together or it wont go in the mode it should go to make it flash!!
In case this happens : The best advice I can give to people is to download the proper MTK drivers. Search for vcom drivers for MTK and you will find.
Print out the instructions and mark every step you do to the letter. The flashing itself only takes like 3 or 4 minutes
lukesan said:
Ok in the process of doing so on my 6GB/64GB version.
edit : congratz I now have a 'phone' that can only go into TWRP . Should have never ever done this!
Says no OS installed ... really nice
Edit 2: after hours wasted was able to get your zipped rom on the Maze but I got no boot with that TWRP, so flashed recovery-verified.img from the 6GB rom from Alpha I had downloaded ... It would then start up but show 4GB out of 6GB. No good but at least all the rest seemed to work. All other effort to get it going back with the proper kernel etc resulted in frustration.
So now to flash the official rom back via their tool... that one got me really frustrated and was completely my fault that I couldn't figure it out. But you know angry, frustrated, must get it back to work, can do this ... After all these years of toying with phones we are so used to pressing 'power and vol+ or vol-' together to make something work. Now in the end I re-read the manual again and saw that you only have to push vol+ and NOT vol+ and power together or it wont go in the mode it should go to make it flash!!
In case this happens : The best advice I can give to people is to download the proper MTK drivers. Search for vcom drivers for MTK and you will find.
Print out the instructions and mark every step you do to the letter. The flashing itself only takes like 3 or 4 minutes
Click to expand...
Click to collapse
Haha I did the same exact thing..and managed to get it working after flashing it with the spflash tool but the trick is if you have Windows 10 latest version you won't be able to do this..at least I couldn't because of driver incompatibility so in my case:
1 I installed Windows 7 and installed mtk drivers for spflash tool
2.booted into twrp
2.1 if you can't boot into twrp or it doesn't turn on you can still try this
3.Start sp flash tool and download the zip the one(in case of trouble)that the moderator published
4. Load the scatter file and make sure that all of the files and the scatter are in the same folder.
5.click download and leave it like that
6.plug in your phone in fastboot if you can't try one of the following
6.1 just plug it in turned off and monitor spflash tool status
6.2 plug it in holding volume up key (just volume not power)
6.3 in twrp go to boot and boot into bootloader
And the tool should do the rest
If all else fails check the drivers one more time
After all that if you are feeling adventurous flash twrp one more time and do not factory reset through twrp ! Because that was the problem in my case and after you unlock bootloader boot your phone and go through the setup without setting the password because twrp will be locked.
Good luck.
frumac96 said:
Haha I did the same exact thing..and managed to get it working after flashing it with the spflash tool but the trick is if you have Windows 10 latest version you won't be able to do this..at least I couldn't because of driver incompatibility so in my case:
1 I installed Windows 7 and installed mtk drivers for spflash tool
2.booted into twrp
2.1 if you can't boot into twrp or it doesn't turn on you can still try this
3.Start sp flash tool and download the zip the one(in case of trouble)that the moderator published
4. Load the scatter file and make sure that all of the files and the scatter are in the same folder.
5.click download and leave it like that
6.plug in your phone in fastboot if you can't try one of the following
6.1 just plug it in turned off and monitor spflash tool status
6.2 plug it in holding volume up key (just volume not power)
6.3 in twrp go to boot and boot into bootloader
And the tool should do the rest
If all else fails check the drivers one more time
After all that if you are feeling adventurous flash twrp one more time and do not factory reset through twrp ! Because that was the problem in my case and after you unlock bootloader boot your phone and go through the setup without setting the password because twrp will be locked.
Good luck.
Click to expand...
Click to collapse
Wait a sec., missing a couple of things here.
1) Do you have a 6GB ?
2) In case you have a 6GB did you manage to get it working, rooted and all?
Your point 6) well I flashed mine on the latest 64bit win10 ... but.... if the phone is off and you connect the usb cable my phone tried to boot up either in twrp with no com port. Also booting it in bootloader doesn't make the comport visible so you can't flash.
The only way to make mine visible for the flashtool was to press vol+ and then connect the usb cable.
Btw I am glad someone finally responds and spreads information. A very good post! Your first 'thanks' well deserved!
I wonder where the guys are that I was trying to help. Did they throw their phones away or something? Sharing is caring I thought.
I want to root mine to alter the camera settings and the media xml file. I find it strange that our sensor, which is the same as in my wife's Xiaomi's, takes seriously bad pictures.
lukesan said:
Wait a sec., missing a couple of things here.
1) Do you have a 6GB ?
2) In case you have a 6GB did you manage to get it working, rooted and all?
Your point 6) well I flashed mine on the latest 64bit win10 ... but.... if the phone is off and you connect the usb cable my phone tried to boot up either in twrp with no com port. Also booting it in bootloader doesn't make the comport visible so you can't flash.
The only way to make mine visible for the flashtool was to press vol+ and then connect the usb cable.
Btw I am glad someone finally responds and spreads information. A very good post! Your first 'thanks' well deserved!
I wonder where the guys are that I was trying to help. Did they throw their phones away or something? Sharing is caring I thought.
I want to root mine to alter the camera settings and the media xml file. I find it strange that our sensor, which is the same as in my wife's Xiaomi's, takes seriously bad pictures.
Click to expand...
Click to collapse
Sorry forgot to mention I have a 4 GB version but since maze is not providing the roms on their website any further development will be limited..thank God for dreambo he is the only guy doing any work here and like you said nobody is responding to any questions asked..shame really because maze is a great phone with a terrible camera..which drivers did you use on Windows 10? because I tried a hundred of them and non of them recognize my phone..and in adb I can run the command fastboot reboot bootloader but after reboot none of the commands are working .
And yes I did manage to install twrp and root using magisk and I to hope that all those other guys didn't brick their phones
frumac96 said:
Sorry forgot to mention I have a 4 GB version but since maze is not providing the roms on their website any further development will be limited..thank God for dreambo he is the only guy doing any work here and like you said nobody is responding to any questions asked..shame really because maze is a great phone with a terrible camera..which drivers did you use on Windows 10? because I tried a hundred of them and non of them recognize my phone..and in adb I can run the command fastboot reboot bootloader but after reboot none of the commands are working .
And yes I did manage to install twrp and root using magisk and I to hope that all those other guys didn't brick their phones
Click to expand...
Click to collapse
This is the filename I used on Windows 10 VCOM Drivers (All MTK Devices & All Windows OS version).zip I think I downloaded it from XDA somewhere.
Also something you must know https://www.howtogeek.com/167723/ho...8.1-so-that-you-can-install-unsigned-drivers/
Another thing I experienced is that one USB connector is not the other one on a pc. Always connect it to the ones directly on the main board next to the other device outputs like audio etc. and preferably not go through ones that have been extended via a cable like the ones on top of the casing or so. Also a must have application is usbdeview.
Well should be easy to get it going if you can boot it into 'fastboot' then you can try as much as you want to. But djeeeeezzzz the letters are very small when you boot it with a power+volume up . Also check that volume up will toggle between 'fastboot', 'recovery' and 'normal start' and volume minus will select it, not the power button which would be more logical to me.
I might have another go at trying to get it working on my 6GB but it involves having a lot of time and knowing that I will get frustrated. Installing all apps and settings is also a time consuming thing. Once you have TWRP on it it all becomes easy to backup. So many things to test or try.
Maybe dreambo has an idea on how to get mine up to a 6GB one as it is probably only indicated in the kernel.
Anyway I will continue to write down my progress.
Ok more frustration. Done multiple things to try to get this running. It's good to know that the original rom is easy to install again after practice.
Take 1: Try to install clean 6GB rom and immediately install TWRP.
Results: Dreambo forgot 1 step and that is to allow OEM unlock in the developer options. If you do the adb command to unlock press volume up and it will unlock (very hard to see, very small letters on the display in bootloader mode)
Well TWRP starts but immediately I get a message 'mount decrypt data password' which I tried a couple of things but no go. Also googled... different solutions but always ending in a bootloop to TWRP
A possible solution that I read was to create a startup pin .... no go 'pin not valid'
Take 2: Take all the rom files and change the scatter file with the one dreambo provided.... Thought it was successful but ended up with the same Chinese recovery. Trying to figure out why since the filename was correct like indicated in the scatter file. Came to the conclusion that the original file was/is called recovery-verified.img and not recovery.img. Really really strange this one as in the original scatter file it also points to recovery.img. So this one I will have to investigate. Renaming the TWRP file to recovery-verified.img lead to a error during the initial scan of the flashtool.
So moral of the story is that I am back on square 1 and lost 2 hours today (plus putting all apps and settings back) today.
I get a bit lost, is this TWRP method only working with the 6GB or also with the 4GB version?
CYberdog11 said:
I get a bit lost, is this TWRP method only working with the 6GB or also with the 4GB version?
Click to expand...
Click to collapse
There is no fundamental difference between 6G and 4G version.
It must works in boat versions.
If you have issues with SPFlashTool try this (no need to install any drivers on Windows 10) :
Put the preloader.bin (found in the rom package designed for SPFlashTool) in the same folder as the recovery.img without checking it the list of partitions (only recovery must be checked) and click on Download to flash the recovery, as usual.
Perhaps SPFlashTool cannot read by himself the preloader in the EMMC, and we must provide it.
The linux version of SPFlashTool not works at this moment, I do not know why
With the SPflashtool I always get the error:
ERROR:STATUS_DA_HASH_MISMATCH (0xC0070004)
HINT
CYberdog11 said:
With the SPflashtool I always get the error:
ERROR:STATUS_DA_HASH_MISMATCH (0xC0070004)
HINT
Click to expand...
Click to collapse
From another thread:
mmakdz said:
google translate
Hello
I had the same problem, (error BROM ERROR: STATUS_DA_HASH_MISMATCH)
what I did: I use Windows 7 System
1- clear all drivers for smartphones with "usbdeview-2-17"
2- install Drivers "Drivers_Auto_Installer_v1.1236.00"
3- install "PdaNetA4170"
4- use "SP_Flash_Tool_v5.1708_Win" to flash the rom. first flash the preloader alone and then flash the others.
the problem was the bad installation of the drivers, after that everything went well for me.
try it can work for you too.
the mentioned software is easy to find on google
Click to expand...
Click to collapse
dreambo said:
There is no fundamental difference between 6G and 4G version.
It must works in boat versions.
If you have issues with SPFlashTool try this (no need to install any drivers on Windows 10) :
Put the preloader.bin (found in the rom package designed for SPFlashTool) in the same folder as the recovery.img without checking it the list of partitions (only recovery must be checked) and click on Download to flash the recovery, as usual.
Perhaps SPFlashTool cannot read by himself the preloader in the EMMC, and we must provide it.
The linux version of SPFlashTool not works at this moment, I do not know why
Click to expand...
Click to collapse
If there is no difference between the 4GB and 6GB then why did I literally spend days on trying this and documenting what happened?
lukesan said:
If there is no difference between the 4GB and 6GB then why did I literally spend days on trying this and documenting what happened?
Click to expand...
Click to collapse
Do you have the 2 versions of the phone and do you have notice any difference of the flashing procedure ?
dreambo said:
Do you have the 2 versions of the phone and do you have notice any difference of the flashing procedure ?
Click to expand...
Click to collapse
I only have the 6GB version of the Maze Alpha. But you wrote that the procedure should work for both versions. I think I wrote down what happened with mine if I installed TWRP.
I tried both the 'regular' flashing and then the full rom install with the trick to put the files in the directory and rename but both ended up as I've written in my previous post.
lukesan said:
I only have the 6GB version of the Maze Alpha. But you wrote that the procedure should work for both versions. I think I wrote down what happened with mine if I installed TWRP.
I tried both the 'regular' flashing and then the full rom install with the trick to put the files in the directory and rename but both ended up as I've written in my previous post.
Click to expand...
Click to collapse
From times to times, I notice trouble with flashing using SPFlashTools.
First (when I post my first post relating of the root) I use the linux version : no issues it works perfect, no need of any drivers!
Actually, no way to have it working on linux, why I do not know!
I have tried Windows 10 and I notice that we have to provide the preloader to have it working, as I write in my post.
In theory, and only in theory, the SPFlashTool must works the same manner in any phone with a Mediatek SOC.
But in reality, we have notice that with exactly the same phone the flashing procedure works for some users and not for others!
SPFlashTool is a very capricious software, there is no warranty to have it 100% working in any platform, even with the same OS.
dreambo said:
From times to times, I notice trouble with flashing using SPFlashTools.
First (when I post my first post relating of the root) I use the linux version : no issues it works perfect, no need of any drivers!
Actually, no way to have it working on linux, why I do not know!
I have tried Windows 10 and I notice that we have to provide the preloader to have it working, as I write in my post.
In theory, and only in theory, the SPFlashTool must works the same manner in any phone with a Mediatek SOC.
But in reality, we have notice that with exactly the same phone the flashing procedure works for some users and not for others!
SPFlashTool is a very capricious software, there is no warranty to have it 100% working in any platform, even with the same OS.
Click to expand...
Click to collapse
The thing is that I have no issue with flashing the software as I can perfectly flash the original rom. The problem is that when flashing the TWRP file, in both options by the way, so also via method 1, I get a boot loop.

[HELP]Flash preloader for mt6750 on LG device[HELP]

hi
the other day i tried to dd in a bootloader to add fastboot to my K8+ (2018) LMX210ULMA and wiped my preloader. The device uses an mt6750 chipset and i had made a back up so i have the approriate software to restore it, i even have the scatter file.
The problem is that there is no da_pl.bin file for lg phones to use sp flashtool, i have no download mode and no fastboot.
i have two pc`s one running ubuntu the other windows 7.
i would appreciate any help
any help at all
ok so ive found some versions of sp flash tool that are supposed to get around the authorization stuff and i have an auth file but i keep getting brom errors. the same one in fact. on linux ifs 0x00. ive been looking at and following the tutorials ivs made android rules and all kinds of things but i cant get it to flash. it started to befote i added the stuff in the tutorials. The red line would go acrross the bottom but now i just get the brom errots.
Thumb up for boldness... :good:
Now you have some interesting project there.
Keep us update if you manage to find out any solution.
No idea how to help but Good luck!
https://blog.hovatek.com/so-whats-all-this-talk-about-meditek-secure-boot-and-da-files/
https://ifindhub.com/download-mtk-secure-boot-da-loader-files-mtk-devices.html
ill get there eventually. I have been looking at all the config and ini files and i hate to say it but security might be essier than you think to overcome. just have to erase a few lines here and there and teplace some as needed. idk ty. Dont worry ill keep you guys posted
i really think sometime we over think and see past the easiest solutions. but what do i know im trying to flash an mtk preloader on an lg phone.
im actually trying to unbrick a few phones. two qc `s and the mtk. I kinda bricked one of my lmx210`s on purpose not thinking it would brick. well jokes on me.
Im have a couple questions maybe somebody can help with. In the past couple months on my journey through madness i have tried a few hindred different ways and more flashtools than you could imagine. So far nothing has worked but ive learned alot of theory.
so far though i know that the mtk board is in bootrom mode. We will get back to that as i have an idea....
ok on the qc boards we have the dreaded 9008 mode. I made some progress today. i wanted to see if the LMX210 could boot from SD card instead of the internal. I believe it can but im having trouble with what to do next. p
i used dd to flash the gpt on my sdcard then formatted the partitions to the proper filesystem. when i plugged it in to the usb it lit up but did not boot. But it lit up for the first time since bricking.
But it only lights up with usb plugged in. Add the batrery and it goes dead. It also doesnt show 9008 mode any more.
i went back and changed the boot and recovery images to reflect using the mmcblk system and now windows device manager can see it. But no boot. im wondering first if i might need a special boot loader to boit from sd and two if i might be able to use the same trick to get the mtk running
Some LG firmwares include some files for SPFT, like LGX240ARAT and LGX230HAT.
but do they work with MT6750? In LGX240ARAT there is a dll that mentions MT6755,
but not MT6750. Newer versions probably needed. Or maybe you could hack it. ??...
part of my problem is not knowing what scatter file to use. these phones have thier info all twaktup. the mtk gives several different board/chip types. like we have 6722, 6755, 6750, 6736 and so on. im pretty sure though its a 6750 board with 6755 chipset but do i use the scatter for the board or the chipset.
Ok idea!!
I can pick the phone up as bootrom mode on port in my ubuntu as /dev/ttyACM0.
That means i can write to it. How can i dd the preloader.bin to the right place on there
Duhjoker said:
Ok idea!!
I can pick the phone up as bootrom mode on port in my ubuntu as /dev/ttyACM0.
That means i can write to it. How can i dd the preloader.bin to the right place on there
Click to expand...
Click to collapse
As I don't know much about but have played a bit with these.
https://gitlab.com/zeroepoch/aftv2-tools
https://forum.xda-developers.com/hd...fire-hd-8-2018-downgrade-unlock-root-t3894256
And there is tools like eMMC Pro, etc. that might work too... ?
I think the m250 did answer to some handshake but there was some problems
because I didn't continue testing those py scripts...
I would try what I could read from it first. From those scatter files I guess that
preloader is on its own partition. The other one should start with partition table, pgpt .. ??
CXZa said:
As I don't know much about but have played a bit with these.
https://gitlab.com/zeroepoch/aftv2-tools
https://forum.xda-developers.com/hd...fire-hd-8-2018-downgrade-unlock-root-t3894256
And there is tools like eMMC Pro, etc. that might work too... ?
I think the m250 did answer to some handshake but there was some problems
because I didn't continue testing those py scripts...
I would try what I could read from it first. From those scatter files I guess that
preloader is on its own partition. The other one should start with partition table, pgpt .. ??
Click to expand...
Click to collapse
Hi,
If you can reach bootROM mode by pressing any of the volume keys while you connect the phone (Mediatek Inc. MT6627) you should be able write and read the EMMC with amonet.
The tool needs some modifications in order to make it work to MT6750. You can probably try with the mt6753 version which may work for MT6750:
https://github.com/Dinolek/amonet
For reference, use this commit:
https://github.com/R0rt1z2/amonet/commit/6b57d0a99f42739d3b3b2ce962b32ecb8fefd950
Contains all the stuff that needs to be edited in order to make it work for that phone
Regards!
Thank you i can give it a try. Its already in bootrom mode though and accepts the handshake. The problem is that the py command that flashes the preloader and stuff on it also wants to flash other stuff as well that i dont have or does not work with the board.
The py command needs to be modified to only flash the preloader, lk.bin, laf and twrp. If those items only could be flashed i could bring the rest of the device up using lgup
I have tried to modify the commands myself to include just those items but it errors. I dont know enough about the python language to be able to do it on my own.
Duhjoker said:
Thank you i can give it a try. Its already in bootrom mode though and accepts the handshake. The problem is that the py command that flashes the preloader and stuff on it also wants to flash other stuff as well that i dont have or does not work with the board.
The py command needs to be modified to only flash the preloader, lk.bin, laf and twrp. If those items only could be flashed i could bring the rest of the device up using lgup
I have tried to modify the commands myself to include just those items but it errors. I dont know enough about the python language to be able to do it on my own.
Click to expand...
Click to collapse
PM me if you need help editing the python script
Regards.
I really appreciate your offer for help. I was looking at the reference for porting and now that i can see the things that would need changing why not go ahead and unlock the bootloader while we are at it. We could save a ton of devices and at the same time give them th3 extra value of being able to twrp and root them.
I have been looking for some way to unLock the bootloader on these phones for days and though it will be some work being able to reflash the preloader AND unlock the bootloader which was my main intent when i bricked it would be worth the extra effort.
Rortiz2 said:
PM me if you need help editing the python script
Regards.
Click to expand...
Click to collapse
I couldnt post the main.py script in the pm but i can attach it here. Thank you so much.
Here is the raw preloader extracted using salt on my pc.
Ok so i went through your source code for the meizu m2 amonet to match it with source code for the mt6750 and i only had to change a couple things. Its pretty much identical to the commit you pointed me too.
As far as i can see your amonet should work just fine with the sp200/lm-x210ulma boards. I did add my .img files to the bin folder though.
Any way i keep getting errors.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Rortiz2 said:
Hi,
Contains all the stuff that needs to be edited in order to make it work for that phone
Regards!
Click to expand...
Click to collapse
Hi,
Didn't continue experiments but now also @Duhjoker might be interested about this last new development...
[EXPLOIT] [BOOTLOADER] Mediatek based LG K10 2017 M250 bootloader secure boot bypass. by @OficerX
https://forum.xda-developers.com/lg-k10/how-to/exploit-mediatek-based-lg-k10-2017-m250-t4183545
MT6755 and MT6750 are essentially the same, MT6750 is cheaper and slower version of MT6755, these are compatible, you can use tools for 6755 on 6750.
Here (https://github.com/arturkow2000/lgk10exploit) you have tools that can help you flash preloader (write_boot0.py), these should work on your device.
Open config.py set BR_DEV_PATH to /dev/ttyACM0
then write: python write_boot0.py --brom path_to_your_preloader_bin
This is slow process, may take few minutes (you will see progress while flashing).

Categories

Resources