Doogee V20 - Format All + Download - Help!! - General Questions and Answers

Hi all,
Just wanted to give a background story as to why I formatted the Flash by accident on my device. I received the phone not too long ago and was excited to venture into the possibilities of testing and trying out different images. Unfortunately without backing up the device I kind of jump the gun and formatted the drive after I ran into some issues thinking I could restore it with the Stock ROM files. To my horror I found out that not all ROMs were included when reimaging the Stock Roms.
So, here I am. The device is working ok, but these are the issues I'm facing below:
- Partially lost of cellular signals - (Flashing "Modem.bin could resolve this, but don't know where to flash it or what folder structure)
- Wifi working inconsistently - (Stock Roms, does include a "Modem_bin" folder with the files, but again don't know where to flash it)
- Don't have all the calibrations files (Maybe I do, but don't have the correct partition or where it would be placed)
- The Databases were also included, but again don't know where to flash it
- Lost IMEI/BaseBand - (Fixed by flashing IMEI numbers through SN Writer Tool)
- Lost Google Device certification - (Fixed by flashing Attestation files with SN writer tool)
Few things I need help with:
- Does anyone have the full structure of their Doogee V20 phone that does not mind pointing me in the right direction of where to flash the Modem.bin files to?
- Also, if IMEI and SN is corrected, does it means now that the NvRam and NvData info is all there or partially there?
Thanks in advance and hope my insights or issues helps other to avoid my mistakes.
I have attached the scatter files and stock roms if you have any way of extracting what I need from them I would highly appreciated it.
Scatter files : attached
Stock rom : Here

Related

Reconstruction Maple ROM from dump - how?

This might be a silly question, but nevertheless I am not very clear how it should be done. Prior to upgrading my Maple to WM6.5 (official HTC upgrade) I made a dump using pdocread -l, resulting in 4 files:
- Part00.raw: 3196K
- Part01.raw: 3584K
- Part02.raw: 104320K
- Part03.raw: 104064K
These files are made from the Maple running the Dutch version of WM6.1, for which (not at that time, and not now either) no stock rom is available. I thought that turning these raw files into a flashable nbh file wouldn't be such a big deal but it seems that I was wrong.
I started with installing HardSPL, to be on the safe side.
I followed the instructions on http://www.modaco.com/index.php?showtopic=255090&mode=threaded and http://www.xdasite.com/showthread.php?t=1084. I tried to adhere as much as possible to these guides, picking the Kaiser as device because it appears to make the tools work, but so far I have not been able to produce a working ROM from the dump: after flashing WM6.1 boots, displays a warning about my SIM missing (which is correct). Then the first boot customization tool launches but fails doing some file operation leaving the device inaccessible. A reboot does not make any difference. Judging from this I think it's missing some stuff, but I have no idea what. Anyone has a working guide how to reconstuct the ROM again?
Btw, as soon as I manage to get one working I'll upload it so it can be added to the above mentioned ROM thread.
Thanks.
Any ideas?

[ROM][2013.01.09] Lenovo A789,P700i,A660 custom ROM (ICS)

I made a clean ROM based on the factory ROM for the Lenovo A789, A660 and P700i
Cleaned up ROMs:
- A789_S227_cybermaus_V2 (below)
- A789_S228_cybermaus_V2.1 (further below)
Ported ROMs (ported from P700i):
- A789_ROW_S105_cybermaus_ICS_V3 (further below)
- A789_ROW_S106_cybermaus_ICS_V3.1 (Further below)(also for A660 and P700i)
- A789_ROW_S107_cybermaus_ICS_V3.2 (Further below)(also for A660 and P700i)
The current and advised rom to use is A789_ROW_S106_cybermaus_ICS_V3.21
Based on factory ROM A789_S227_120827, and located in my Dev-Host. It is as close to factory as possible, which I hope will be good for stability. It is a flash-utility ROM, because it also holds the latest preloader, uboot and recovery. Assuming those are OK, followup fixes will be update.zip style.
Summery of changes:
- Rooted the phone with Chainfire SuperSu
- Set to boot in US-english, changed name of ROM
- Added MoreLocale for extra languages in 3rd party apps
- Removed Chinese apps, incl Chinese keyboard, removed SmsReg.apk
- Left Lenovo Security (anti-malware) and Lenovo (Go) Launcher intact
- Added Google GAPPS, Play Store, Maps, etc
- Added MobileUncle toolbox, SManager (root explorer). Titanium backup (free version)
- Added fix for location services
- Added CWMT recovery image (modded from 593cn.com)
- Added Skype, Whatsapp, and some others, as auto-install into userdata upon wipe
- Prepared busybox (you need to run script /system/xbin/installbusybox as root if you want it)
- Replaced bootup animation with clean Lenovo butterfly
- Replaced all some audio files with english named ones (thanks mabuc)
- Caller ID bug still present, sorry
- Just as a reminder, these ROMS have English and Chinese only.
Instructions:
By default, the ROM will not overwrite USERDATA or FAT. If you want a clean slate, first extract empty.userdata.rar and/or empty.fat.rar
- Read bgcngm flash tutorial.
- Read it again
- Start Flash Tool (v3.1222, in my Dev-Host)
- Load scatter file
- Take out USB cable and replace battery
- Press the download button in the flash tool
- Connect the USB cable
- Wait for the flashing to complete
A789_S228_cybermaus_V2.1 (no longer current, Use V3 instead)
Based on factory ROM A789_S228_120913, and located in my Dev-Host. Similar to V2, but newer, and a few extra fixes. It should be noted that the S228 is listed to solve unexpected crashes, so an important update in itself.
I do not have a A789, so it is a blind build. Until I get positive feedback, consider untested. Don't be the first to try if you are not experienced.
Summery of changes:
- Same as on V2, and additional
- Removed 2 more chinese apps that I forgot last time
- Prepared busybox (you need to run script /system/xbin/installbusybox as root if you want it)
- Added a tweak so USB-Debug notification is no longer shown
- Added a tweak so Wifi works on all 14 international channels (rather than only the 11 US ones, may be undone if you set a different locale)
Instructions:
This is a update.zip type ROM. So you need the custom recovery, see post #3,
A789_ROW_S105_cybermaus_ICS_v3.03
Based on P700i_ROW_S105_120920, see this separate post.
A789_ROW_S106_cybermaus_ICS_v3.11
Based on P700i_ROW_S106_121001, see this separate post.
Please note that this ROM I also build for the P700i and A660. See same post.
A789_ROW_S107_cybermaus_ICS_v3.2
Based on P700i_ROW_S107_121221, see this separate post.
Please note that this ROM I also build for the P700i and A660. See same post.
Below:
Post #2: Small review and fix of location services
Post #3: Custom recovery image
Post #4: Root your phone / install GAPPS
Also, many issues for the A789 are similar to those of the A750, so if you have questions, do search that Lenovo A750 thread to.
Thanks
Also thanks to bgcngm for his help, and to jazzor for his help
=================
BTW: Due to new forum rules, resulting in a large number of people that cannot post into developer threads and that subsequently PM me, I open op a new Q&A thread.
I am not going to be policing, so you can post where you like, but I invite everyone to use this new thread for any Q&A, and this thread for ROM releases and deep development talk only.
Consequently, if you PM'ed me, look for your reply in this new thread
Thanks
====================
PS: do drop me a reply if you use or tried it! Or press the 'thanks' button.
So, I got my first glimps at the A789. So to speak. My colleague was holding it while we were audio-skype, so I did not actually see it.
His A789 came with a Etotalk ROM by Dean, which I now suspect is a reworked Smileyvvv ROM with Sony Experia interface. Not bad, but as you know, I am a 'factory ROM' guy. My colleague may also be, because he had already replaced the the SE launcher with GO Launcher, which is the default Lenovo one. Also my colleague said it jammed a few times, which it still has not done on my factory A750 ROM.
Most of the phone worked, but a few tips for others out there:
- The phone still has the Called-ID bug. Even though it is newer 4.0,4. I know some of you claim this is solved on ICS Mediatek, but I still claim it is solved in *some* of the cases, not all, it also depends on how your provider sends the caller ID info. Anyway, you can work around it with the prefixer app as reported before.
- It did not come with the MobileUncle tool, but with the Etotalk tool. Which was not updated for the new MT6577 chip, so it had no Engineer Mode. Install the latest MU tool (version 20120813v2.2.0 its in my Dev-Host), so you get one with MT6577 Engineer mode.
- Recovery Mode was hard to get into. Like the newest A750 preloader, you have to press the power putton *just before* you press both volume buttons. But it did came with the CWMR Touch, though its Touch function was broken, so buttons only. They probably simply tried recovery images of other models, and did not properly build one with the A789 kernel, but it does not matter, it works well enough.
- Location services did not work. Update the phone with the ICS_locationfix_v1.3 update using recovery mode. While you are in recovery, also wipe cache. And finally, go into MobileUncle tool, the MTK Engineer mode, and in location settings, change the NetLoc from MEDIATEK to GOOGLE. Now your location services should work.
Lenovo A789 Recovery
I created a recovery image for the Lenovo A789 based on ClockWorkMod Touch 5.5.0.4. However, I do not own a A789, so until I have reports of it working, consider it untested. You can download it from my Dev-Host: File A789_S22x_recovery_cybermaus.rar
NOTE: It has come to my attention this recovery works well, except the nandroid backup function, which is broken. If you value nandroid backup, install the APKHOT one below.
While doing this, I also found a full APKHOT distro which had what seems to be a CLockWorkMod (non-Touch) recovery in it, so I extracted that and also uploaded it. That too you can download from my Dev-Host: File A789_S22x_recovery_apkhot.rar
Both of them you will have to flash using the flash tool, using bgcngm's excellent manual, and the V3.1222 of the flash utilities and drivers, also in my Dev-Host. If you flashed my V2 ROM, you do not need to do this, as the recovery is already part of that.
Once you have the recovery installed, you can enter it by pressing both VolumeUp/Down while booting the phone. Due to an issue with the preloader, it may be needed to press the power button slightly before both volume buttons. If the phone seems stuck, it means the preloader messed up, remove battery and try again.
Inside the recovery (the Touch variant) you can navigate not only by its physical buttons, but also by screen buttons, and by gestures: swipe up/down for up/down, left for back and right for enter.
The first few people using this, please report your findings, good or bad.
PS: As alwasy, thanks to bgcngm for his unpack utilities, which I used to modify the recovery.img
Lenovo A789 Root; GAPPS, Location DIY
Its been mentioned before, but if you have a working recovery (like above, hopefully), you can always yourself root your phone. Simply install (from inside the recovery) chainfire's "CMW installable ZIP"
Link to his post: (ignore his big red requires root warning)
The file you need is labeled "CWM installable ZIP" at the bottom.
Direct link to the file you need to install via recovery update.zip
And while you are at it: You probably also want to install the latest Google Mobile Services (better known as GAPPS) from CyanogenMod V9:
Explaining wiki from CyanogenMod
The file you need is called gapps-ics-20120429-signed.zip and can be found here
You probably also want to wipe your cache partition after doing this.
To complete this DIY of fixing factory ROM: On Chine phone typically the location services do not work. Update the phone with my A750 V1.3 update using recovery mode. (it works on the A789 because it is a minor update, but *DO NOT* any of the other A750 updates on the A789. I repeat, do *NOT* flash A750 on A789). While you are in recovery, also wipe cache. And finally, go into MobileUncle tool, the MTK Engineer mode, and in location settings, change the NetLoc from MEDIATEK to GOOGLE. Now your location services should work.
Good luck
PS: If either update.zip refuses to install, remember to turn off the checksum and assert checks in the recovery.
And thanks to Chainfire for his work, and the team at CyanogenMod for theirs.
cybermaus said:
Before I can help, please provide some info:
Can you tell me what ROM you have?
Which flash tools did you use to root?
Also, do you have a working recovery?
Click to expand...
Click to collapse
hwonggc said:
I fix the proximity thingy. it's caused by my lousy screen protector. But i've got another bigger problem now. I've accidentally uninstalled the default system home screen. I cant assess anything now. I tried flashing a recovery inside but it still doesn't work as factory. I use SP flash tool v3.1.222.00
---------- Post added at 06:32 AM ---------- Previous post was at 06:18 AM ----------
dont think my recovery is working. Could you please provide me with a working recovery? =(
Click to expand...
Click to collapse
Yes, a recovery is on the todo.
But for now, you did not answer my questions yet:
- Can you tell me what ROM you have? Or had. Original Lenovo Factory, Etotalk-Dean, some other?
- Which flash tools did you use to root? Or rather, which files did you flash using that tool to deal with root. Actually, the fact that you had to root it yourself probably means you had factory ROM, but please confirm.
As stated, I am uploading S221 original to my Dev-Host. Flash that with the flash tool. On short notice, that is all I can do. On longer notice, I will help you, but give me some time.
Edit: In fact: You you already have messed up your recovery, and I do not have a A789 to play with myself, you may be my guinea pig for the recovery build. So I will work on that today. (as today is not a working day for me anyway). If you do not mind being a tester. After all, the damage is already done, and you apparently already know how to flash using the utility.
EDIT: @ hwonggc : Please test recovery in post#3. Just update your post below with results, or PM me. I would like to avoid too many new posts on this while we are testing.
cybermaus said:
Yes, a recovery is on the todo.
But for now, you did not answer my questions yet:
- Can you tell me what ROM you have? Or had. Original Lenovo Factory, Etotalk-Dean, some other?
- Which flash tools did you use to root? Or rather, which files did you flash using that tool to deal with root. Actually, the fact that you had to root it yourself probably means you had factory ROM, but please confirm.
As stated, I am uploading S221 original to my 4Shared. Flash that with the flash tool. On short notice, that is all I can do. On longer notice, I will help you, but give me some time.
Edit: In fact: You you already have messed up your recovery, and I do not have a A789 to play with myself, you may be my guinea pig for the recovery build. So I will work on that today. (as today is not a working day for me anyway). If you do not mind being a tester. After all, the damage is already done, and you apparently already know how to flash using the utility.
Click to expand...
Click to collapse
Yes yes. I had the factory rom. I got the phone just yesterday evening and this afternoon it's half dead already. I use smart phone flash tool to root using a file i got from http://www.fight.org.ua/publications...novo_A789.html. Everything was fine until I deleted the original home UI and the apex launcher also. So there isn't anything I can do. I'm downloading the S223 from some russian site and try, hopefully I can find some luck there. Downloading slowly~ sighhhh.
---------- Post added at 07:49 AM ---------- Previous post was at 07:40 AM ----------
BTW~ i'm willing to test out your rom too! I wouldn't want to sound too demanding, put please please put in the play store will ya?
I posted the custom build, see first post. It may take a while before I can get it uploaded, I am on a bad link.
Also, there have been 20 downloads on the recovery image. Come on guys, someone must be able to provide feedback about it working or not!
A789_S227_cybermaus_V2 ROM is working
Hello
Thanks for Your work.
Your A789_S227_cybermaus_V2 ROM is working.
Simple Flashing and start without problems. Now I must check some functions.
Thx again
basell
Edit:
The 3g connections don't work at first run. After restore they start but in My opinion with less sensitivity (compare to stock rom). It's look like A789 loose some frequency on witch can work.
Edit2:
And they have some strange behavior - After couple min of data connection (on 3G) they disconnect with information - "Restricted access changed" and the same is when I try to choose network manually. After that sometimes they login to 3G sometimes they change to EDGE.
In Stock version (S221) was not this kind of problems.
Edit3:
In place with good 3G signal I have no problem with data transfer.
How Can I check on witch frequency (2100,900,850) I have connected My data transfer?
Thanks for testing
Well, I definitely did not mess with any of the 3G stuff. So if it is true that 3G is less sensitive, then I would claim it is true for the factory S227 vs factory S221, and not directly related to my cleanup of it.
But (sorry to say so) I have learned to take claims of improved or degraded radio sensitivity with a grain of salt, even for the factory ones.
Having said that: Restoring S221 radio into S227 firmware is easy. The radio is separate firmware file, and I can extract the S221, S223 and S227 firmware in a separate file, so you can test. Were you actually using factory S221, or some other?
As to whether it is using 2100, 900 or 850: I can probably figure out how to get that info, *BUT* reality is that your provider most likely has only one frequency anyway. Most, pretty much all, EU providers are on 2100. The phone could not get to 900, simply because your provider does not have that frequency in the air (not for 3G anyway). And 850 is not supported at all on this phone.
Anyway, inside MU utility, engineer mode, bandmode, you can check/set the frequencies that are supported.
But please run a proper test if 3G is really degraded. As stated. it is so often a empty claim, I am somewhat careful to follow it. You want me to extract the 3 versions of firmware files in update.zip files?
Also, what country/vendor are you? please list the MMC and MNC from inside the APN settings.
Hi
If You will prepare this files I can test it tomorrow.
I'm from Poland and I have two frequency on data transfer - 2100 and 900. But I don't know if A789 use only one or change them. The place I'm test the signal is poor and I don't see if I work on 2100 or 900.
If You can, pleas tell me what kind of tests I can do to do that properly
Ok, here they are. update.zip type.
I only have S221 and S227, but the firmware files were indeed different, in more than just their timestamps. Of course, normally I would assume newer is better. So to make it clear: below files only replace the radio&dsp firmware, not the phone firmware.
Try to test honestly for yourself. Same conditions, same place, same time (because network load can make a difference)
It is possible that 3G really is degraded in S227, but as mentioned, I learned to not jump to conclusions just because the network is having a bad day.
WARNING: I retracted the two attachment, because I made a typo in the installer script. While the firmware is for the A789 (MT6577), the installer script is for the A750 (MT6575). Sorry. I will upload the correct ones in a moment.... Anyone that took a copy of these files before Oct 14, delete them!!!
I suspect the install would simply have failed, no harm done, but best to get rid of all copies anyway
BTW: basell, is that why you asked how to install? Really, if you ask for help, you should provide a bit more info. Anyway, I attached newer scripts, if you still want to try.
sorry for My question but :
How to install this firmware?
Like any update.zip on android. Go into recovery (see post #3) and apply the update.zip
i have the problem that the netlocation doesn't work with google maps, i flashed the cyber update 1.3, nothing changed, what should I do now?
And this is on what phone and ROM?
Anyway, to quote myself: "While you are in recovery, also wipe cache. And finally, go into MobileUncle tool, the MTK Engineer mode, and in location settings, change the NetLoc from MEDIATEK to GOOGLE. Now your location services should work."
many thanks, Cybermaus, netlocation works again after your instruction
Hi,
Thank you very much for building the ROM !!
I am using it for 3 days now and I am happy to report no problems with it. Everything works and most important: no more freezes !!!
my A789 came with the Etotalk by Dean ROM which was mostly OK, but was freezing from time to time (some days not at all, other days several times a day - most of the times when hanging up a call or, when trying to do wake it from standby: I was pressing the power button, but the screen would not light up).
Other things I like about this ROM:
- all phone functions work great
- Google Play works perfectly
- is rooted
- it has the Lenovo battery app, which is great! I am not 100% sure if this is the reason, but the battery life went from 1 day to 2 days
- I had no issues flashing it
- CWMT recovery works
Also, so far, I did not experience any 3G issues
I have written a small review of the Lenovo Security app, which you guys may want to put back on your phone if it was cooked out of it.
jman0 said:
Thinking it twice, I've remembered another reason. One of the things I like most about the apkhot rom I'm using is that the external sdcard is mounted on /sdcard and not /mnt/sdcard2, which avoids problems with many apps. I tried one of the newest apkhot roms, based on s227, and none of the tricks to exchange /sdcard and /mnt/sdcard2 worked with it.
Click to expand...
Click to collapse
Well, that is actually an easy change to perform, just change the /etc/fstab.vold
However, if you go into settings->storage, the first option is default write disk. Change it from USB storage(the internal SD) to SD (the external SD)
So no hacking is needed at all.....
I've been running your rom for around 6 hours now. Everything runs fine. The 3G connection worked without much trouble. The only thing I haven't been able to do is performing a backup with the CWM Touch Recovery. So, I've just flashed the recovery I had on the apkhot rom I was using, using Mobileuncle tools, and now I've been able to create a backup.
So far, so good, and I've noticed a slight performance increase, too.

Repacking/modem/service

Hello every 1.
I need information any kind now.
I'm stuck and walking in circles.
My device isn't best wit support but it's the 1st one I'm trying to repair and spend too much time to leave it unfinished
My device: Huawei G740-L00 (not youmo)
My problem:
I'w updated from B176(NEEU) to B178(WEU)
I remember I used force upgrade, didn't know about regions
(because few months ago I had no idea what is ROM, nor recovery, ??bootloader?wtf is boot?? ) -total-noob-
Result:
Sure-->GSM, LTE, WCDMA - LOST. Wi-fi & gps - OK.
Standard upgrades dload/update.app - fails
B178 (NEEU) version doesn't exist
Impossible downgrade, stock device
I can only upgrade the same update.app B178(WEU) & ofc it doesn't change anything.
extra: (still not sure what to do with this info)
-DCunlocker: shows version B165. maybe it was my stock ROM and I did upgrades B165>B1xx>B178, else B165>B178
& my original S/N
-Phone shows B178 & wrong S/N
So that is done:
-Rooted
-Unlocked Bootloader(DC-unlocker was best solution after all huawey supports)
-Flashed CWM recovery
Solutions in progress:
1. Easiest would be to get update.zip with original firmware. Install via cwm and then upgrade via sdcard to version for my region(NEEU).
///Didn't find any, so skipped after few days.
2.Extract firmware region. I need: update.app-->Use something like: split_uppdata(or HuaweiUpdateExtractor-if it's not for MTK?? My device Qualcom based )to get .iso files and try luck to flash with ADB etc. (if possible)
/somehow it doesn't look like good idea, I think there r many missing files after extracting and i have no idea what exactly I need. So:
2.1.Use Ext4imgUnpacker on .iso files extracted-> to validate ?somehow? what files r missing in boot,system,cust,recovery etc...
--------Here I stopped----------
///It seemed something wrong at all, even if I can check what files r missing and if I really need it, I can't repack (?solutions?)
3.Flash something like radio.iso(modem) from original firmware I need. Does it have to do something with RIL files?
I was digging deeper & deeper & surfing all the web about anything what can help me & I found samsung guide how to create .iso using odin
http://forum.xda-developers.com/showthread.php?t=1777579
then searching something like that on my device I found shortcuts:
---->/dev/block/platform/msm_sdcc.1/by-name
modem (?maybe CDMA MODEM)
/dev/block/mmcblk0p13
modemst1 (?maybe LTE_MODEM)
/dev/block/mmcblk0p10
modemst2 (?maybe LTE_MODEM2)
/dev/block/mmcblk0p11
Maybe it would be enough 4 me?
BUT I have:
+Terminal
+Cygwin
-Huawei doesn't have Odin.
-------Here I stopped again-------
I really need to find people with my device. But I think any advanced android user can help me. Most of old users of G740 doesn't seem like to use it anymore. 4 me it's my 1st android repair. I must repair it, because like I said 2 months ago I didn't know what is ROM, and spent too much time researching this all.
Any info might help:good:

[GUIDE] 1:prep for custom, and 2:getting back to working stock

AS ALWAYS: I take no responsibility - DO THIS AT YOUR OWN RISK!!!! BE CAREFUL!!!!! I guarantee nothing.
1 Mar 2020 9:50PM GMT: changed - PE10 doesn't work with this - need backup of EFS. Persist, fsg.
8 Mar 2020 2:42AM GMT: I doubt the premise of removing the 2 erases of t1 and t2 so that has been removed. The crux of this guide is simply take backups of EFS and a few other files before making any mod.
Why this post: it seems many folks can't get back to working stock (no wifi or mobile).
- - for folks who have re-locked their phones, I have no solution for unlocking it if you can't go to the motorola site and unlock it. Sorry. - -
- - for folks who are on a custom ROM with working wifi and mobile, and don't have backups of EFS etc from stock, DO THAT as described below. - -
EDIT: Pixel Experience 10 coming back to stock wipes mobile, even though it worked on PE10. Have to have twrp backup of EFS, Persist, fsg. Worked fine for Lineage 16, Superior OS. So clearly, have a backup!
Prep: if you are thinking of trying a custom ROM, or simply as a good safety aid, back up some of the small files:
Grab both the .img and .zip files of the latest TWRP.
Temporarily boot to twrp:
1) boot your phone to bootloader screen (power off, then hold vol-dn while hold power - takes 6 secs or so.
2) plug your phone to PC and do "fastboot boot twrp.img" (latest is 3.3.1-0)
- at the twrp screen, if you have 9 dots 3x3, press "cancel" just below that.
- choose Backup and select only the ones you want - I used EFS, Persist, fsg, Vendor.
- make sure it is stored to your SD card. It will be in /twrp/backup/..... Probably best to put a copy on your PC as well.
I use google's backup - in settings/system/backup to backup and restore my apps and settings. I uncheck "contacts" when restoring. your choice.
3) go to backup and tell it to backup now.
4) do 1 and 2 above.
5) now, flash twrp permanently: (since you previously put the latest twrp.zip on your SDcard, choose "install" and flash it. Hit back arrow until you get back to the regular menu and chose reboot, and choose recovery - this will reboot your newly flashed twrp and lock it in. (this method correctly puts twrp in both slots - -a and -b. -> https://twrp.me/motorola/motorolamotox4.html
Now, using the instructions in the thread for the ROM you want to flash, install it.
---------
Okay, you want to get back to stock: I grab the latest-minus-one for my phone from lolinet. At the time of this writing, I use -4 even though -5 is out - this way I will get an immediate update for -5 as the first boot is progressing. ie immediate proof that build is good as far as OTA is concerned.
Expand that zip, and add platform-tools to it. Also add whatever bat files to it that you wish. Attached to this post is the one I just used to get back from Lineage (modified slightly from the one I used to get back from PE 10).
EDIT: I do not know for sure that the bat file without the 2 erases is helpful/necessary so have removed it.
This bat is special! It was made from the xml from XT1900-1_PAYTON_FI_9.0_PPWS29.69-39-6-4_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip , so if you are using a different zip, you will need to check that the command set is the same - particularly check the number of sparsechunks.
This bat is also very special because it intentionally does not include the two erase modemst1 and t2 commands. This is because I found that these 2 will render your new build as not having mobile, or possibly wifi.
okay, now you are ready to flash stock. Put your phone in fastboot mode (bootloader screen as per #1 at top of post). In windows you can right click on the folder that contains all this junk and choose open command window. Then just type the name of the bat file. I put lots of pauses near the beginning as I assumed I would make mistakes. ymmv
This gave me a perfect result. I will test with superior OS tomorrow.
EDIT: Superior OS back to stock works fine but Pixel Experience 10 (and probably others) required a twrp restore of a previously backed up EFS, Persist, fsg.
-----------
Thanks to @redwoodie and @akillenb .
The bat file is renamed txt to be allowed. You will need to change it back to bat.
EDIT: I do not know for sure that the bat file without the 2 erases is helpful/necessary so have removed it.
This bat is from XT1900-1_PAYTON_FI_9.0_PPWS29.69-39-6-4_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip - check the xml file in the stock zip you are using to assure this bat is correct for your zip.
future
future2
Wow, you actually did all that? Thought you were risk-adverse on your X4. What an adventurer!
So, your .bat omits the erase modems t1/t2....yet that is what I had to do to get them back after I lost radios. Weird.
Should one leave those commands out if re-flashing stock when one has never flashed a custom ROM?
Thanks for the excellent how-to.
"Superior OS"--meaning 39-6-5?
redwoodie said:
Wow, you actually did all that? Thought you were risk-adverse on your X4. What an adventurer!
So, your .bat omits the erase modems t1/t2....yet that is what I had to do to get them back after I lost radios. Weird.
Should one leave those commands out if re-flashing stock when one has never flashed a custom ROM?
Thanks for the excellent how-to.
"Superior OS"--meaning 39-6-5?
Click to expand...
Click to collapse
Superior OS - custom - SuperiorOS-Phoenix-payton-UNOFFICIALwgapps-20200216-1735.zip
I'm only going to do 3 and I picked those based on views.
It's all your fault! Then akillenb seems to have success so I jumped in. Key is taking backup of all those little partitions. If I hadn't done that I would have been immediately sc***ed.
I discovered the prob with the erases when I was trying to fix PE 10. I would restore EFS, erase t1,t2, and EFS was zero again. So DUH! So I made that bat file and tried it with Lineage and it worked perfectly. The only thing that takes time with this is waiting for all my apps to get put back on, but at least that is automatic. It also makes it easy to build a custom ROM.
Now everybody gets to shoot holes in it!!!
If people going back to stock flash proper firmware retin =retin only ,retail=retail firmware , after sept patch (retin user) moto modify retin modem this leads to no wifi and no network ,this happen when people flash different firmware for fun ,it can be fixed by restoring efs,persist
For retin users I already made script and firmware for this
I already explain this on telegram
---------- Post added at 04:42 PM ---------- Previous post was at 04:37 PM ----------
For twrp there is modified version of twrp made by syberhexen ,it can decrypt data
OP changed: EDIT: Superior OS back to stock works fine (as does Lineage 16) but Pixel Experience 10 (and probably others) required a twrp restore of a previously backed up EFS, Persist, fsg.
I doubt the premise of removing the 2 erases of t1 and t2 so that has been removed. The crux of this guide is simply take backups of EFS and a few other files before making any mod.

Compiled Kernel-Source - now what?

Hello dear people,
I've managed to compile a Kernel for the A515F - using the source code provided by samsung (https://opensource.samsung.com/uploadSearch?searchValue=A515F) - Version A515FXXU3BTF4.
The usage of make (...) yielded an Image (no extension) and a Image.gz file under the path "arch/arm64/boot/" within the sourcecode.
The size of the Image is 30,3mb - the Image.tz size is 10,3 mb - looks good so far doesnt it?
SInce my last kernel-development work is from 5 years ago and a lot of things changed during that time - what are the next steps in order to install this kernel on the device?
I can remember somethings, like using adb / fastboot to flash the related partitions, etc. - im going to get my head around this, but maybe someone could give me some hints ?
Ive also have some other questions:
- Flashing a custom kernel on this device trips the knox status - ive read that this disable secure folders and samsung pay - so no software that im interested in - are there any othere drawbacks of installing cfw ?
- I've read alot of A/B partitions - Ive used an android app which logs some hardware-specific information about the device and as it looks - the A51 uses A/B partitions - what does that mean and how does it differ to smartphones 5 years ago?
- From other kernel-development-work (on x64 / x86 hosts) I know that the modules of a kernel should be a part of the resulting Image / Image.gz file - is this also the case in this scenario? Are drivers / and related modules part of the kernel?
- Is it possible to test this kernel on an android emulator? I dont want to flash something somehow on a device wihtout being sure that it doesnt result in a bricked device.
Thanks in advance!
theWicket said:
Hello dear people,
I've managed to compile a Kernel for the A515F - using the source code provided by samsung (https://opensource.samsung.com/uploadSearch?searchValue=A515F) - Version A515FXXU3BTF4.
The usage of make (...) yielded an Image (no extension) and a Image.gz file under the path "arch/arm64/boot/" within the sourcecode.
The size of the Image is 30,3mb - the Image.tz size is 10,3 mb - looks good so far doesnt it?
SInce my last kernel-development work is from 5 years ago and a lot of things changed during that time - what are the next steps in order to install this kernel on the device?
I can remember somethings, like using adb / fastboot to flash the related partitions, etc. - im going to get my head around this, but maybe someone could give me some hints ?
Ive also have some other questions:
- Flashing a custom kernel on this device trips the knox status - ive read that this disable secure folders and samsung pay - so no software that im interested in - are there any othere drawbacks of installing cfw ?
- I've read alot of A/B partitions - Ive used an android app which logs some hardware-specific information about the device and as it looks - the A51 uses A/B partitions - what does that mean and how does it differ to smartphones 5 years ago?
- From other kernel-development-work (on x64 / x86 hosts) I know that the modules of a kernel should be a part of the resulting Image / Image.gz file - is this also the case in this scenario? Are drivers / and related modules part of the kernel?
- Is it possible to test this kernel on an android emulator? I dont want to flash something somehow on a device wihtout being sure that it doesnt result in a bricked device.
Thanks in advance!
Click to expand...
Click to collapse
First of all, dang that's a lot of questions at once.??
Also you might've already figured out the answers to all of em but still here are all the Answers in case you didn't or for someone else seeing this post.
Q1) For installing the kernel on the device, one option is to flash the boot image using twrp while the other is to compress to boot.img.tar and flash in the AP section of odin.
Q2) The only drawback is tripping knox which makes some samsung apps like samaung pay, samsung pass, secure folder etc to not work on your device EVER. I repeat they won't work on your device ever because tripping knox is an irreversible thing.
Q3) Yes samsung A51 uses A/B partition structures which just means that it has 2 copies of some partitions like system and vendor, for example. For more details google should be able to explain it to you better than me. Aka A-only vs A/B partitions.
Q4&5) I'm sorry but I don't know about that ? but in case you are looking for tests you can ask in A51 telegram group.

Categories

Resources