Unlocking the bootloader of a Meizu Pro 5 Chinese - Meizu Pro 5 Guides, News, & Discussion

Ok, so this is a braindump of my process of unlocking my new Meizu Pro 5 Chinese, preventing me to forget everything I did until tomorrow, but I'll also try to highlight some gotchas and hopefully give some insights into how things work (the why, not the how).
Sorry for the mangled urls, it's one of my first posts here and I can't post links yet.
But first, some general considerations:
Meizu uses it's own fork of AOSP (Android Open Source Project) called Flyme: h**p://www.flymeos.com/
there are two types of firmwares for Meizu Pro 5, A and G - which is the suffix letter after the version, for example 6.1.0.0G or 5.1.3.0A
the A firmwares are for the Chinese models, and can be found at h**ps://reameizu.com/?s=PRO+5%E7%94%A8Flyme
the G firmwares are for the global models (hence the G), and can be found at h**p://www.flymeos.com/firmwarelist?modelId=10&type=1
the interesting note to make here is that the G firmware is smaller than the A one, because it contains less bloatware
there's no easy conclusive way to see which version you have, the rule of thumb is that if you have a few apps with a Chinese name, and especially if you have the Meizu App Store (h**p://bbsimg.res.flymeos.com/forum/201607/07/174749bi2d0i9bi0q5iia0.png) app, you have the Chinese model
another way is to look at Settings -> Account section, if you only have an "Other account" (and no "Flyme account") section, you have a global model; it's also possible to install the MzAccount apk, which will bring back that section and allow you to login into your Flyme account and root a phone with the G firmware (read below about "official" rooting)
the only conclusive way is to look at the ro.meizu.hardware.version prop from a shell
Code:
[email protected]:/ $ getprop | grep hardware.version
[ro.meizu.hardware.version]: [M576_intl_official]
M576_mobile_public is for Chinese, M576_intl_official is for global
(all shown commands are ran on a global model, unless specified otherwise)
this prop is stored in the /dev/block/platform/15570000.ufs/by-name/procinfo partition (which is a symlink to /dev/block/sda2), and you can dump it with dd from a root shell (note the #)
Code:
[email protected]:/ # dd if=/dev/block/sda2 bs=1 count=58
#! Meizu M86 product info
machine_type=M576_intl_official
58+0 records in
58+0 records out
58 bytes transferred in 0.006 secs (9666 bytes/sec)
there's a file inside the firmware update.zip, namely META-INF/firmware_type, which specifies the model the firmware is for; the updater compares the model from this file with the model from the procinfo partition, if they match it goes ahead with the update, if they're different, it shows the dreaded "Firmware corrupt" error (h**p://bbsimg.res.flymeos.com/forum/201710/03/194357r3mx162uxz7mquir.jpg), which is kind of misleading, if you ask me
To be continued...

Related

[App]Market HighRes Fix[May 3rd] (2.3.6) Eclair| (2.3.4)Floyo | GiggleBread (No)

Mar 14th : 2002304 version Fixed work fine for me on 2.1 stock ROM.
only 964×544 faked Res
maybe you will need an other version if you run on a Custom Mod, post below if it worked or not for you ad which rom
WORK FOR MINI & PRO (and maybe others phones)
Here are the Versions :
2002306 (2.3.6) 544×964 faked Res teapea's work (thanks him) : http://www.megaupload.com/?d=STR8DHKW
---------------------------------------------------------------------------------------
To use older version : delete or rename marketupdater.apk
2002304 544×964 faked Res version: WORKING
Code:
http://www.megaupload.com/?d=L18MP8HY
signed 2002304 544×964 faked Res version: report as working
Code:
http://www.megaupload.com/?d=570LCOE0
the both versions are reported as WORKING on 2.1 stock ROM, I can't know if they work on any custom mod untill you confirm it.
******************************************************
floyo's custom mod this one WORKING :
http://www.megaupload.com/?d=WAPZVYD8
*****************************************************
giggleBread provided by ctalcant
http://www.megaupload.com/?d=S05I08YH NOT TESTED
http://www.megaupload.com/?d=GSEOQVMQ (signed version) NOT TESTED
compare results before and after and please reports below
************************************************************
here the old one (2002013) for those who hate the new userInterface (don't forget to delete/move marketupdater.apk
Code:
unsigned 2002013 version :TESTED/WORKING
http://www.megaupload.com/?d=19JB1BK2
http://www.mediafire.com/?aep26ecp55184rj
signed version 2002013: NOT TESTED
http://www.megaupload.com/?d=TXBQYD80
http://www.mediafire.com/?ssszch5r6as27r8
How to :
0- download and put the file on your sdcard, unmount your sdcard
0.5 - rename it "com.android.vending.shokmah.apk" (without the quotes)
1-activate FlightMode
2-goto settings > applications > manage applications > [menu bouton] filter > all
2.5 - select market then uninstall update, and force stop
3- activate usb debugging and launch adb on your computer then type these line
Code:
adb shell
su
mount -o rw,remount /dev/block/mtdblock0 /system
cat /system/app/Vending.apk > /sdcard/Vending.bkp.apk
rm /system/app/Vending.apk
rm -r /data/data/com.android.vending
rm /data/dalvik-cache/[email protected]@[email protected]
cat /sdcard/com.android.vending.shokmah.apk > /system/app/Vending.apk
For rm /data/dalvik-cache/[email protected]@[email protected] don't pay attention if you got an error !
If you found "adfree android" or 3544 (or +) results for video , it's worked.
If you want to thanks me, just choose the megaupload link.
Greetz:
Inteks for the old version
Orion for His Easy APK Disassembler
and what exactly are the benefits with this version compared to that one: showthread.php?t=742608
or that one: showthread.php?t=645286&highlight=market
i still dont know why it keeps saying, that im not allowed to "post outside links" when i write a link to another topic...
I dont know but inteks's version was "erased" by market updater so I take the update and Fake the resolution.
New users Are not allowed to post links
that's why I put mine with code "tag"
sorry for the english
Thanks, but there is no com.android.vending.apk in /system/app. Do you mean Vending.apk?
yes, mine disapearred after some tests, then I push it to com.android.vending.apk and it work well.
User report me that with Vending.Apk name it also work.
It works great! Can confirm it's the new version 2002012.
Thanks shokmah
Thanks for this shokmah!!
Whats the difference? ive done the patch, but i dont see any different...
I don't know the entire difference Between the Stock original One, but It may add new features such as Instant search, apk auto-update option, and many others features.
The patched version allow you to view app which require 320×480 screen Display, some of theses apps work great on our 240×320 screen Display.
I may add support for greater Screen resolution but more you Increase Resolution, More unlocked app will not work smoothly.
Sorry for the english, it's not my native language !
EDIT :
to verify if it work :
search for adfree android and you should found the app
search for video you should have 3544 found result
thanks a lot!
Now I can download "adfree android" app, but "video" string result get 2202 result..
ps: Xperia X10 mini pro, and 2.1
maybe it's different for other , I've french market
Worked for me
Thanks!
you know it works if you search "video" and see results for "video ringtones"
"video ringtones" : 46 matches
Thanks. Worked for me.
When i search "video", i get 3368 results.
How can i prevent the market from getting self-updated in the future? I dont want to disable the data traffic for ever
simplest way to hack the market is here by me..http://bit.ly/9E3Bii
Root explorer's way seem to be simplest way , but adb's way is powerful and completely free and normaly you should pay for RoOt Explorer .
@MonteChristo1979 : you have to delete marketupdater.apk in /system/app, for new update I or Someone will post a patched Vending.apk again
the market is not the problem ! its the marketupdater !!! delete it and everything is fine
badboybiky said:
simplest way to hack the market is here by me..http://bit.ly/9E3Bii
Click to expand...
Click to collapse
nope ! the simplest way you get here ->> http://forum.xda-developers.com/showthread.php?t=845130
wow, YOu made an awesome work, a GUI for those who are affraid of command lines is Great.

[IMEI] IMEI Generator

Current version: !IMEIme 2.2.0.4
Bug Fix
Fixed bug in use previous patch that could result in variable used before declared error.
Changed processing order when custom patches were to be used
The program will now process custom patches prior to editing framework.jar and build.prop edits. With new kernel patches requiring a new build.prop users would lose build.prop edits if the kernel was included in custom patches, the program will now patch any user modifications, then process IMEI generation and build.prop edits.
Updated to work with ROMs that do not include GSMPhone.smali
Recently, many ROMs are not including GSM phone utilities in framework.jar. I have added testing for missing GSMPhone.smali and patching via TelephonyManager.smali if necessary.
UPDATED FILES UPLOADED
MANY of the support files have been updated to the newer versions (smali, baksmali, adb and components).
I encourage you to delete all files in your existing IMEI Generator folder and use the new !IMEIMe.exe to generate the files necessary.
The devices.dat file if you've used the previous version has several issues that prevents the device model from being correctly patched on many of the devices. This has been fixed here and in the device list thread.
There is a known issue with the GUI when your screen settings are set at 125% in Control Panel - Appearance and Personalization - Display... I will work on fixing that in the next release.
Bug reporting thread for !IMEIme
Device list thread
New features:
Will patch GSMPhone.smali if present in framework... patches TelephonyManager.smali otherwise.
I chose this method since more ROMs are coming out for wifi tablets that do not have GSM phone information included in framework.jar. I was playing with CM10.1 and discovered GSMPhone.smali is not present, thus I was getting unable to patch GSMPhone.smali error, and there was no patching for an IMEI. In all honesty... this should be irrelevent, since IMEI is only utilized in cellular communications on GSM phones... however... some applications MAY (xda free does) require an IMEI to work, even on wifi only devices.
ODEX files still in the works
odex file support... I think this solution will work on odex file systems as long as the patching is done on the ROM prior to flashing to device (anyone using odexed system please let us know) and I am working on in place patching on odexed systems... however, I am not completely comfortable since there is a lot of work done by the device itself during odexing of the modified files... I am very hesitant since any mistake could render a bricked device and I don't have a system to test with prior to release.
Previous Important Changes
The new version of the IMEI Generator will no longer overwrite your existing devices.dat file with the current. To use new devices.dat file, delete the old one prior to running the program, or download the new one and unzip it in the IMEI Generator directory.
Device Communications not necessary in certain situations
If you select to Update ROM, using Serial Number based IMEI and do not select Encrypt IMEI, the program will no longer need to communicate with the device when performing its tasks. The framework.jar patch will not hard patch the IMEI in this situation as before. This is useful for patching a ROM for distribution to multiple people, since they will all maintain unique IMEI's. This is accomplished with the following change in the framework.jar
Code:
/com/android/internal/telephony/gsm/GSMPhone.smali
.method public getDeviceId()Ljava/lang/String;
[b]changed[/b] iget-object v0, p0, Lcom/android/internal/telephony/gsm/GSMPhone;->mImei:Ljava/lang/String;
[b]to[/b] sget-object v1, Landroid/os/Build;->SERIAL:Ljava/lang/String;
prior to patching in code to prepend "0"
.method public getDeviceSvn()Ljava/lang/String;
[b]changed[/b] iget-object v0, p0, Lcom/android/internal/telephony/gsm/GSMPhone;->mImeiSv:Ljava/lang/String;
[b]to[/b] sget-object v1, Landroid/os/Build;->SERIAL:Ljava/lang/String;
prior to patching in code to prepend "0"
To try to explain the above a little...
The above is always changed, no matter what IMEI generation method you select...
If you select Serial Number and New Type IMEI and not Encrypt: no other patching is done for the IMEI... this can be implemented on many devices, since each will have a unique serial number.
If you select Serial Number and do not select New Type: additional code is added to format the IMEI to the old standard ("00-" and "-"s)... this can be implemented on many devices for same reason.
If you select MAC Address or Encrypt (or both): additional code is added that results in the IMEI being hard coded, this makes it very much device specific.
If you select MAC Address or Encrypt (or both) and do not select New Type: additional code is added that results in the IMEI being hard coded as well as code to format the IMEI, this makes it very much device specific.
Use Custom Patch NOTE: This is only used when patching a ROM
This is going to take some major explanation, since I ran into so many possible scenarios...
One thing of note... the only additional lines added to updater-script will be for files in the base directory
The order of processing is:
1. Original ROM updater-script and files
2. Custom Patch zip file
3. Custom Patch folder
The program will utilize folders (from Patch zip file or Patch folder itself) named modboot, modsys, or system (not case sensitive in windows) as well as files in the base folder
Any files in modboot will be moved to the root of the **ROM**-IMEI.zip file and lines added to updater-script as needed
Any files in modsys will be moved to the system directory of the **ROM**-IMEI.zip file
If Custom Patch is checked...
/META-INF/com/google/android/updater-script is extracted from the ROM
the program will ask you to select the Custom Patch Folder
If there is a zip file present in the folder the program will ask if you want to use it
You have 3 options, "Yes", "No" or "Cancel"
Yes = Use the zip file
No = Don't use it, select another
Cancel = Don't use a zip file
If you use a zip file, it will extract the zip file and process the updater-script in it for any additional lines needed
After the above, any non-zip files and modboot, modsys and system directories in the Patch Folder will be processed
I chose this order so you can have a "go to" patch zip file, and test other additions by using the file, folder options prior to including them in the zip.
Example here:
I have my custom patches in folder /CM7/UserMods with these contents:
/META-INF
/modboot
/modsys
patch.zip
The program processes patch.zip first, then overwrites any files with the files in modboot and modsys
It also processes /META-INF/com/google/android/updater-script for any lines extracting files to /boot and adds them to the original ROM updater-script if not already there.
It then adds lines for any files originally in /modboot to updater-script to extract them to /boot
"New IMEI Type" of IMEI which no longer has the "-"s in it, but maintain backward compatibility for those who already have IMEI's generated or prefer the old style. When the new type is selected in the GUI:
NOTE: Per the IMEI standards... Using a single 0 prepended to the IMEI indicates a TEST IMEI for a country with 3 digit international code... while it should have no implications to us since we are not on a cell... it may provide potential country validity issues... I will monitor this and resort to 00 prefix in the new type of IMEI if necessary.
ADDITIONAL NOTE: Per the IMEI standards... For devices without an IMEI, they are to provide a unique serial number to be used... This program modifies framework.jar to allow this.
I am now patching framework.jar in the /com/android/internal/telephony/gsm/GSMPhone.smali file instead of /android/telephony/TelephonyManager.smali (this change is what allows the information to display in the about tablet information)
I am renaming and patching 2 functions... getDeviceID() and getDeviceSvn()
By patching the two functions in this file... the IMEI now shows in Settings... About Tablet... Status... no longer have to use external program or dial *#06# to verify the device is patched.
getDeviceID() shows it in IMEI
getDeviceSvn() shows it in IMEI SVN
You can rename or copy !IMEIme.ini to IMEIme.ini and the program will work.... useful for *nix users and probably mac users... since they have issues with special char actors (!)... While I like to use it in windows to keep the executable and ini file at the top of the file list in windows explorer... anyway...
The program looks for IMEIme.ini first and uses it if present... if it is not... it then looks for !IMEIme.ini (which will be there... because the program installs the generic !IMEIme.ini if it isn't ) This also provides a good way to keep your ini.. and see the new settings in the compiled in ini.
GUI selection and related ini setting
GUI: New IMEI Type
INI Setting:
New_Type =
; If 0 then the old type of "00-XXXXXX-YYYYYY-ZZZ" will be used
; If 1 then the new type of "00XXXXXXYYYYYYZZZ" will be used
BUG FIX
No known or reported bugs to work out.
!IMEIme.ini file default settings and explanation:
Code:
;The setting options are 1 (use the option) or 0 (don't use the option)
;WiFi IP Address can be set to your Nook's IP address here to a default to use
;IMEI can be set to a default here... you can also set the seed you use for generation
;Setting Device_Manufacturer to anything will result in an edit to build.prop setting the entered manufacturer
;IF Device_Manufacturer is NOT blank then:
;Setting Manufacturer_Device to anything will result in an edit to build.prop setting the entered device
;
;NOTE: ONLY Device_Manufacturer is necessary for this edit... there have been no software that appears to
; require a device edit
;
;Setting LCD_Density will result in build.prop edit for this setting regardless of Device_Manufacturer setting
;
;Set all options in [Settings] section at the bottom
[Settings_Explained]
Use_In_Place = 1
; If 0 Disable In Place patching... useful for those who always update AOSP ROM files and never patches on device framework.jar
; If 1 Enables In Place patching if ADB is working
Use_Previous_Patch = 0
; If 0 Ignore IMEI.fix
; If 1 AND IMEI.fix exists... use it for patching
Use_Serial_Number = 1
; If 0 then do not base IMEI off of Device Serial Number
; If 1 then base IMEI off of Device Serial Number
; NOTE: This takes priority over Use_MAC_Address
Use_MAC_Address = 0
; If 0 then do not base IMEI off of Device MAC Address
; If 1 then base IMEI off of of DeOvice MAC Address (last 5 hex words) (2 bytes = 1 hex word)
; 0A is converted to 010, FF is converted to 255 etc.
; NOTE: Use_Serial_Number takes priority
Use_Manual_Input = 1
; If 0 then Manual Input disabled
; If 1 then Manual Input enabled
Encrypt_IMEI = 1
; If 0 then uses actual data for IMEI... i.e. Serial Number (last 15 digits) or MAC Address (last 5 hex words) is actual IMEI
; If 1 then program encrypts data for IMEI generation... hiding actual Device data
New_Type = 1
; If 0 then the old type of "00-XXXXXX-YYYYYY-ZZZ" will be used
; If 1 then the new type of "00XXXXXXYYYYYYZZZ" will be used
Use_ADB = 1
; If 0 then ADB is disabled... this will prevent In-Place updating from working all together
; If 1 then ADB is enabled... In-Place will work... IF adb is working on your device
; NOTE: This takes priority over Use_ADB(usb) and Use_ADB(WiFi)
Use_ADB(usb) = 1
; If 0 then ADB via USB connection is disabled... I use this since some ROM's have Debug Mode issues
; If 1 then ADB via USB is enabled and attempted first
; NOTE: Use_ADB takes priority over Use_ADB(usb) and Use_ADB(WiFi)
Use_ADB(WiFi) = 1
; If 0 then ADB via WiFi connection is disabled
; If 1 then ADB via WiFi is enabled... I use this since some ROM's have Debug Mode issues
; NOTE: Use_ADB takes priority over Use_ADB(usb) and Use_ADB(WiFi)
Clean_Up = 1
; If 0 then the program will leave all support files when cleaning up and exiting
; If 1 then the program will delete all support files when cleaning up and exiting if none of them
; existed at program start
Include_Patch = 0
; If 0 then custom patches is disabled
; If 1 then the program will prompt for custom patches to include
Device_Manufacturer =
; If blank then the program will not edit build.prop
; If anything other than blank the program will edit build.prop to include manufacturer
Manufacturer_Device =
; If blank then the program will not include device in build.prop edit
; IF anything other than blank the program will include device in build.prop edit
; NOTE: No build.prop edit will occur if Device_Manufacturer is blank
Device_Model =
; If blank then the program will not include model in build.prop edit
; IF anything other than blank the program will include model in build.prop edit
; NOTE: No build.prop edit will occur if Device_Manufacturer is blank
Build_Fingerprint =
; If blank then the program will not include Build Fingerprint in build.prop edit
; IF anything other than blank the program will include Build Fingerprint in build.prop edit
; NOTE: This edit will occur even if Device_Manufacturer is blank
LCD_Density =
; If blank then the program will not include LCD Density in build.prop edit
; IF anything other than blank the program will include LCD Density in build.prop edit
; NOTE: This edit will occur even if Device_Manufacturer is blank
WiFi_IP_Address =
; You can enter the default Device IP address here... especially useful if you are only using this on one device...
; or if you keep seperate folders for each device you use (!IMEIme.exe and !IMEIme.ini must be in each folder)...
; i.e. folder for "sister" containing the program and ini file at minimum.
; If blank the program will prompt you for the IP address of the device to establish ADB WiFi connection
IMEI =
; Enter a base 10 (integer) and it will be used as the IMEI (duplicated until 15 digits is reached)
; Enter your "seed" and the program will generate an IMEI based off of it
; NOTE: If you try to generate the old GENERIC IMEI the program will not do it
[Settings]
Use_In_Place = 0
Use_Previous_Patch = 0
Use_Serial_Number = 1
Use_MAC_Address = 0
Use_Manual_Input = 1
Encrypt_IMEI = 0
New_Type = 1
Use_IMEI(15) = 0
Use_ADB = 1
Use_ADB(usb) = 1
Use_ADB(WiFi) = 1
Clean_Up = 1
Include_Patch = 1
Device_Manufacturer =
Manufacturer_Device =
Device_Model =
Build_Fingerprint =
LCD_Density =
WiFi_IP_Address =
IMEI =
Credits:
mthe0ry: Credit for the original IMEI patches released for us Nookers(TM). His original thread is here...
martian21: Took mthe0ry's work and maintained it for releases of CM7, upeating it for each nightly that needed a new one. Martian21's thread.
HacDan on irc.freenodes.net #nookcolor for helping me figure out patching GSMphone.smali instead of TelephonyManager.smali
Thank you's:
paleh0rse: I believe was the first to download and test this program... I think the first bug report too... helped many users with suggestions regarding their apps.
mr_fosi: Continues testing and reporting despite no need to. Tested a few private beta builds to help iron out a significant issue. Also providing information regarding Phone App *#06# IMEI test.
martian21: Set the wheels turning. Provides invaluable feedback and suggestions. He is an invaluable tester and Q&A guy. Thanks for dangling that bait
mellopete: Provided the very first bug report... prompted me to include necessary files in the program itself.
TheMainCat, 12paq and frankusb: Provided bug reports leading me to look at why some Windows versions didn't run the program initially.
Nayla1977: Bug report regarding a mistyped EndIf in my source.
jdexheimer: Bug report that lead me to find a problem with folders with spaces in them.
LinuxParadigm: Bug report regarding missmatching If - EndIf's.
BitingChaos: first public post to get me back on target.
dillweed, garrisj and many others: for PM's indicating the importance of this solution.
lemdaddy for reporting the bug that we tracked down to the java version and reporting back that it was the java version causing issues.
adusumilli for reporting the bug where IMEI was generated as "00-cat: c-an't o-pen"
topcaser for being persistent enough with the bug causing In-Place to fail in certain situations.
HacDan on IRC for leading me in the right direction to impliment the patching of GSMphone.smali.
We are all adults, if we break our toys... we only have ourselves to blame and we may have to buy new ones... (this will NOT break your Nook... I PROMISE you that! but it may break some of your apps... more on that later in post)
BUG REPORTING:
This program was initially ineteded to generate a unique IMEI based on your device S/N and update Dev's install zip files... it has become so much more, and as such there are many functions involved in this process.
Due to the complexity the program has taken on... far beyond what I initially intended... to report bugs please try to use the following as a template:
Function attempting: i.e. Updating ROM... In Place Upgrade... Update framwork saved on computer... etc.
Error Messages: any error message you receive... or the last message you saw prior to the issue.
End result: i.e. GSMphone.smali updated, ROM not... GSMphone.smali updated framework.jar not... etc....
Environment: ROM in same folder as IMEIme.exe... ROM on same drive as IMEIme.exe... ROM on different drive... etc. (same for framework if updating framework instead)
!IMEIme.ini settings: you can put your entire ini file if you'd like.
If you could take notes of EXACTLY what which selection in the GUI you have selected and any buttons you click on which prompt it would be EXTREMELY helpful...
As I said, this program has taken on functions I initially had not imagined including... the more features added, the more complex testing and tracking bugs becomes... I don't want to include a bunch of messages just for the sake of letting you know where in the code you are... would not be beneficial to you... more buttons to click for no reason, etc.
The more detailed you can be, the quicker I can see what is happening... otherwise I have to try to duplicate what I think you are doing when you get the error.
mr_fosi and martian21 have been very tedious in reporting bugs... I greatly appreciate their testing despite not needing to, and the manner in which they document what is going on....
Everyone should click "Thanks" on their bug report posts... they have been instrumental in getting the program where it is so far.
Background:
Some developers require a unique number that is supposed to be provided by hardware manufacturers that is unique to every device. This unique number (IMEI) is extremely important in devices utilizing cellular communications.
Since B&N has not registered IMEI numbers for the Nooks, the AOS's we are using do not acquire it as they do in other Android devices.
The developers that require a unique IMEI have been less than receptive of our devices and past methods to provide functionality to utilize their apps.
I decided to provide what I believe to be a viable solution to this problem.
What this program is:
It is a method to provide a unique IMEI (with reasonable certainty) for our Nooks.
It IS intended to be a supplement until IMEI is addressed in dev's ROM's.
It IS viable for Froyo... CM7... CM9... CM10...Honeycomb... MIUI.... AOKP... and others.
I can't think of any reason it will not work with ANY ROM you choose to utilize... if you run across one... just let me know and I'll see if I can't fix that.
What this program is not and does not do:
This is not a perfect solution to our Nook specific issues. Let me make it PERFECTLY CLEAR there is NO PERFECT SOLUTION We are generating an IMEI from something else... I use TEST IMEI patterns based off of our device serial number, to ensure apk devs wouldn't come down on us.
It is not targeting any specific AOS.
It is not guaranteed to be accepted by any other developers.
It is not intended to be the end all, beat all solution.
It is not intended to dissuade other developers from providing what they feel is a better method.
It will not cause any programs to show in the market. That has to be dealt with via APK developers and/or build.prop Manufacturer strings.
Potential issues:
There is NO legitimate solution to the IMEI issue we Nookers (TM) face... unless a group desires to register a block of them for our use... thus I am generating TEST IMEI's... ideal... no, but the only method available to us.
While I feel, with significant certainty, there will be no negative consequences from apk devs in general, I cannot speak for them, or their logic. This can easily be disabled by them again. That is on them, not me or us. By the same token, they can decide to stop providing their service for cause, I still have no control over that.
Above, I emphasize “with reasonable certainty” due to the fact that, in theory, you can wind up with an IMEI that 9 other Nooks that use this software has. That can only happen if the other 9 owners use this program and have a serial number within the same 10 as yours. This is even less likely with the New IMEI Type since it is using the right most 16 digits of a device serial number (and we know they all start with 2)
If everyone who has the same beginning 15 digits utilizes this program to generate an IMEI, you will all wind up with the same IMEI. Given the number of Nooks out there compared to the number of user's hacking them.... I find it extremely difficult to believe, with a reasonable certainty, that any 2 (much less 10) devices would ever wind up with the same IMEI generated by this program. This is prevented when using the New IMEI Type
What this program does/is capable of:
It allows you to extract framework.jar from a developers update zip file.
It will allow you to pull framework.jar from your Nook or use an existing framework.jar already stored on your computer.
It will generate an IMEI based on your Nook's serial number (or MAC Address) if adb is working on your system. If you have issues running adb via USB (ADB(USB)), it provides the opportunity to utilize adb via WiFi (ADB(WiFi)) for any computer-device communications.
It will provide you a method to manually input your serial number if you cannot connect to the device via adb. You can also input a “seed” (easy to remember word or phrase) and generate an IMEI based on the ASCII codes of the text you enter.
It will edit /com/android/internal/telephony/gsm/GSMPhone.smali to rename any existing getDeviceId() and getDeviceSvn() function to getDeviceId2() getDeviceSvn2() and append the patch to end of that file. NOTE: When the program "smali's" the resulting GSMphone.smali... it relocates the appended function to be before the renamed function.
It will save the patch as IMEI.fix, thus allowing you to utilize it for subsequent runs of the program. A caveat to this is... if you run it from the same folder on a friend's Nook... it will overwrite your original one if it is in the same folder or they will have the same IMEI as you do if you use Previous Run.
It will offer to push the patched framework.jar to your Nook... IF you opted to pull framework.jar from your Nook AND adb successfully worked to do that. This facilates in place upgrading.
It will backup the existing developers zip file appending “-IMEI” to it, distinguishing it is one this program has been used on. It will update this file, not the original developers file.
If there are issues with file names that become duplicate in a case insensitive OS such that windows is, it will warn you of this case and not remove the updated framework.jar to facilitate manual updating of the zip file.
Caveats:
This program is known to work on Java version 1.6.0_23 and known NOT to work on version 1.6.0_17 or earlier. If your system seems to work fine... but the nook does not give you an IMEI number... check your java version by typing this in a DOS window (start-run and type in cmd):
java -version
this will tell you the version of java you are running.
Java must be on your system. It must be in your system's path statement, or this program must be in the java/bin folder. It is possible that you must have java 32 bit version, this is being researched.
It will very likely break your swype, or any other app that utilizes IMEI for validation and you have used previous methods to circumvent their validation process.
It will likely break the same software if/when developers include a fix to the Nook IMEI situation in their AOS. Unless you opt to use this method again on their AOS to ensure you maintain the IMEI you used my program to generate.
Since I have opted to utilize test formed IMEI's to prevent duplicating someone's “real device” IMEI, software developers can easily shut us down again. That is their option. I am trying to provide a solution that is acceptable to both sides of the fence.
Closing statement:
As I desire to make this program as beneficial as possible... PLEASE provide any feedback and/or bug reports... just don't continue to push your ideals once it has been discussed... beating dead horses gets tiresome and just wastes precious time.
112 downloads of 2.2.0.3 with bug when pervious fix was selected
1686 downloads of 2.2.0.2 with no bugs reported
141 downloads of 2.2.0.1 with CM10 in place bug that would cause BBSOB and never boot
197 downloads of 2.2.0.0 (that actually appeared to be 2.1.0.4 in the zip) with a few minor bugs... mostly in custom patching
648 downloads of 2.1.0.3 with known GT for GameLoft issues
1123 downloads of 2.1 with no known bugs
182 downloads of 2.0a with a Generic IMEI bug
1919 downloads of 1.9 with no bug reports
3131 downloads of 1.8 with all bug reports being for non-nook devices
80 downloads of 1.7 with no bug reports
600 downloads of 1.6 with a couple of reports of In-Place update bug
880 downloads of 1.5a with 0 bug reports
148 downloads of 1.5 with a bug that could result in IMEI being generated without being properly formed.
36 downloads of 1.4 with a bug that could result in IMEI of "cat: can't open".
258 downloads of 1.3 with 0 bug reports... time to move on with next feature.
1618 downloads of 1.1 and the only bug noted has been tracked to the user's Java version.
12,758 downloads prior to the current version.
Bug reporting thread for !IMEIme
Device list thread
Looks like I have something new to mess with tomorrow night... thanks for working this, we owe ya!
Been looking forward to this! Thanks for your hard work DizzyDen.
Tested it out however it isn't finding 7zip. I've tried both the 64-bit and the 32-bit version (on 64-bit Windows 7). I'm probably doing something wrong if so please feel free to enlighten me
Martian21
martian21 said:
Been looking forward to this! Thanks for your hard work DizzyDen.
Tested it out however it isn't finding 7zip. I've tried both the 64-bit and the 32-bit version (on 64-bit Windows 7). I'm probably doing something wrong if so please feel free to enlighten me
Martian21
Click to expand...
Click to collapse
It wasn't you... there's something weird with the API to the fileopendialog that changes the working directory... a TEMPORARY work around is to copy the zip file to the folder you are running the program from.
Updating to beta 2 to auto extract support files on run.
Beta 2 is up... OP updated... note the bold text... for now the zip file must be in the same folder as IMEIme.exe
That will be fixed shortly.
Updated to beta 3. OP updated.
Fixed file browse for update file.
Improved cleanup behind itself before exiting...
removes helper files
removes framework.jar
removes classes.dex
removes out folder
removes system folder (the one used to add framework.jar to the zip file)
Still debating ability to allow manual input of the IMEI or a serial number... but those that want to do it will probably figure out how to do it manually... its REALLY not that hard.
Will add random IMEI generation as an option. The only purpose I see for this is for those who don't want to use the generic IMEI and cannot get adb working... even with the included adb in this program.
Feedback and bug reports are welcome and will help improve the program.
Thank you for this
I had to copy my AdbWinApi.dll for it to work. It did not put the new framework.jar in the zip though. It made the files, but didn't update the zip. I moved it to the root of my drive and ran it as administrator, but it still didn't update the zip. I am using Windows 7 x64. I used the IMEI.fix file and updated the zip myself. Thanks again for this nice tool.
mellopete said:
I had to copy my AdbWinApi.dll for it to work. It did not put the new framework.jar in the zip though. It made the files, but didn't update the zip. I moved it to the root of my drive and ran it as administrator, but it still didn't update the zip. I am using Windows 7 x64. I used the IMEI.fix file and updated the zip myself. Thanks again for this nice tool.
Click to expand...
Click to collapse
Did you use something prior to b3 ?
There was an issue I discovered that was preventing appending IMEI.fix to TelephoneProvider.smali that was fixed in b3.
I did my development on windows64 so that shouldn't be an issue.
As for the dll... I hadn't experience issues with that... but I can certainly add it to the program.
Both adb dll's will be included in all releases after b3.
Good job!
Can you explain more about how rom is being affected?and what to check?
Sent from my phiremod for Nook using Tapatalk
DizzyDen said:
Did you use something prior to b3 ?
There was an issue I discovered that was preventing appending IMEI.fix to TelephoneProvider.smali that was fixed in b3.
I did my development on windows64 so that shouldn't be an issue.
As for the dll... I hadn't experience issues with that... but I can certainly add it to the program.
Both adb dll's will be included in all releases after b3.
Click to expand...
Click to collapse
b3 is the first one I tried. I didn't look at the classes.dex before it was deleted. I will check.
RASTAVIPER said:
Good job!
Can you explain more about how rom is being affected?and what to check?
Sent from my phiremod for Nook using Tapatalk
Click to expand...
Click to collapse
Read here http://forum.xda-developers.com/showthread.php?t=1004102
TelephonyManager.smali did not change.
mellopete said:
TelephonyManager.smali did not change.
Click to expand...
Click to collapse
Please make sure b3 is the one you are using. When you originally posted... the thread was showing 0 downloads of that file.... or just wait a few minutes... beta 4 is on its way shortly.
To ensure TelephonyManager.smali is not changed you need to look in two places.... the easiest way is to search for getDeviceID
If it worked correctly you should find 2 instances... the first is the original function and my program renames it to getDeviceID2()... the second should be the one !IMEMe adds to the end of TelephonyManager.smali
Additionally... could you check and see if your run is actually overwriting update zip file.... see if there is a update ".zip.tmp" file left over... if it is there... the zipping is running into an issue overwriting the original file... I thought I had that issue worked out... but may need to add a check for that within my program.
I d/l b4, dropped it in a directory with just the .zip for n87 and ran it (win7 pro 64-bit). It errored out and here's the play-by-play of each of the windows which popped up one immediately after the other:
- I was warned about you being an unverified software publisher, which I OKed.
- "Windows cannot find 'java'. Make sure you typed the name correctly, and then try again." I OKed this one as well.
- window titled "DizzyDen's IMEI Generator" containing: "Return Code is:0 and Error Code is: 1"
- window titled "DizzyDen's IMEI Generator" containing: "Java is required on your system. You can download the current version from http://java.com"
I have JRE6 on my machine, though it is not in the system PATH.
Oh, and there were files for 7za, adb, .dll's and .jar files left behind.
mr_fosi said:
I d/l b4, dropped it in a directory with just the .zip for n87 and ran it (win7 pro 64-bit). It errored out and here's the play-by-play of each of the windows which popped up one immediately after the other:
- I was warned about you being an unverified software publisher, which I OKed.
- "Windows cannot find 'java'. Make sure you typed the name correctly, and then try again." I OKed this one as well.
- window titled "DizzyDen's IMEI Generator" containing: "Return Code is:0 and Error Code is: 1"
- window titled "DizzyDen's IMEI Generator" containing: "Java is required on your system. You can download the current version from http://java.com"
I have JRE6 on my machine, though it is not in the system PATH.
Oh, and there were files for 7za, adb, .dll's and .jar files left behind.
Click to expand...
Click to collapse
java will need to be in your path... I have no way of including all possible locations of where it could be installed... and it is way too big to include with my program.
The left over files is due to the program exiting when it did... I will fix that in next beta... should have waited until java was tested to extract them... or have it perform cleanup before exiting on any errors... sorry bout that.... you can leave them... when you have successful run (or run beta 5 or later) it will clean them up.
For now you may have to run as administrator.... I will try to add code to avoid this in the short future.
BTW. Nowhere does getDeviceID does it say that it must be a well formed IMEI.
nemith said:
BTW. Nowhere does getDeviceID does it say that it must be a well formed IMEI.
Click to expand...
Click to collapse
As much as I admire your work... I am honored that you are even checking this out.
I do understand that as of now it is not required... but I figure if I utilize standards (as much as there are anyway) we may avoid future issues if dev's start checking for well formed IMEI's.
I figure if I'm going to make this... I might as well make it right.
As far as I can determine... if a sw dev implemented IMEI checks, the only thing that could cause them to shut down someone using this would be to check that it is a "TEST" IMEI... but I don't see that happening, because hardware manufacturers do use these in testing.
DizzyDen said:
java will need to be in your path... I have no way of including all possible locations of where it could be installed... and it is way too big to include with my program.
Click to expand...
Click to collapse
Roger that. Should the instructions then note either the required change to PATH or that the file must be run in the user's jre#\bin directory?
DizzyDen said:
The left over files is due to the program exiting when it did... I will fix that in next beta...
Click to expand...
Click to collapse
I figured as much, but thought you should know.
DizzyDen said:
For now you may have to run as administrator...
Click to expand...
Click to collapse
I ran it this way and got the same behavior.
I'll keep a lookout for further versions, test them and report.
Beta 5 is up... OP updated to include Java requirements... thank you mr_fosi for pointing this out.
RASTAVIPER said:
Good job!
Can you explain more about how rom is being affected?and what to check?
Sent from my phiremod for Nook using Tapatalk
Click to expand...
Click to collapse
Did you find the information in the thread linked in response to your questions?
TY mellopete for that.
- Plugged NC into USB port.
- Copied new B5 exe and n87 zip to java\jre6\bin directory.
- Ran exe as admin.
- Prompted for .zip check ("is this correct") and it was, so I OKed it. Not OKing it gave me the option to browse for the file, which I cancelled, resulting in a termination of the prog with a few more dialogs. Any extracted files were cleaned up an prog close, except for adb.exe (which I deal with below).
- Re-ran, exe, chose the detected n87 .zip.
- Displayed correct serial.
- Displayed correct generated 17-digit IMEI.
- Dialog contents "Modifying" gave error "Unable to open file", which I OKed.
- Several more dialogs flew by in rapid succession without error, ending with "Updating ROM" overlaid by "Updated ROM file has been saved as: cm_encore_full-87-IMEI.zip".
- Not all ancillary files were cleaned up. Two files remained: 1) IMEI.fix, a plain txt file containing the correct code to insert the generated IMEI and 2)adb.exe which could not be removed because it was still running the devices server. Running "adb kill-server" in the java\jre6\bin directory allowed me to remove adb.exe.
- A check of the modified smali showed only one instance of "getDeviceId" indicating that the smali had not been modified to add the code to spoof the IMEI.
I would also not have been able to eject my NC, had I tried, until I killed the adb server. Looks like one more line of code to add before cleanup.

[TOOL] Fix TWRP Backup Dates / Find Your Phone's Birthday

Well, a week into my Nexus 5 and the dates on backups got to me. "Was that the one before or after I pooched my phone?"
I was doing rough conversions at first, then convinced myself that there was a reasonably fixed offset between "real time" and what TWRP was labeling things. @helicopter88 let me know that there was a missing ability in the chip, so I looked for a run-time solution. Unfortunately, adjtimex wouldn't take a large enough offset.
Since the reasonably useless date stamps on backups were, well, reasonably useless, I did write a little script that converted the dates on the backups to something that matched my local time, given the offset.
Looks like @Dees_Troy has saved me a bunch of coding inside TWRP as there is a going-forward fix in the TWRP sources now. Since he found the magic file where the offset is stored, you don't have to try to "guess" it from looking at your clock and your phone's (though $ date && adb shell date will get you the information you need).
For those backups you already have, here's how you can get the dates and times fixed up on them.
Edit -- Shell scripts made up for on-phone use:
sh birthday.sh while on the phone will give you offset and your phone's birthday (Yes, Korean time, of course!)
Code:
[email protected]:/ # sh /data/media/0/twrp-dates-tool/birthday.sh <
1386550085
Mon Dec 9 09:48:05 KST 2013
sh spew-twrp-rename.sh /path/to/TWRP/BACKUPS will write the commands to move the directories to the terminal (stdout)
The "spew" script finds the offset itself.
It will rewrite both old (20th century) dates and current ones, but only time-shift the older ones.
It will also convert spaces in the file names to underscore characters.
See attached files (.txt added to allow upload)
No, there isn't a "zip" for this -- checking that the right things are being done with your backups before they can't be undone is important
Read on only if you want to do this using perl.
Now, you can adb pull /data/system/time/ to get two files, ats_1 and ats_2 that have the offset in milliseconds as a 64-bit unsigned integer. Pick one or the other, get the human-readable output trim off the last three digits, and there is your offset (within a second). Mine drifts a second each week or so, but hey, this is a lot closer than 1970 something!
Once you have the offset, this script will take a list of files and spit out the commands to rename them, if they match a TWRP-format date in the 1970s. (Edit $offset to match yours.)
Code:
#!/usr/bin/perl
use strict;
use Date::Parse;
use Date::Format;
my $offset = 1386550084; # Edit this to match your offset
my $line;
my ($year,$mo,$day,$h,$m,$s);
my $twrp_time;
my $new_time_string;
my $before;
my $after;
LINE:
while ( defined ( $line = <> ) ) {
chomp $line; chomp $line;
next LINE unless $line =~ m/((197\d)-(\d\d)-(\d\d)--(\d\d)-(\d\d)-(\d\d))/;
$before = $`; $after = $';
$twrp_time = str2time("$2/$3/$4 $5:$6:$7 GMT");
$new_time_string = time2str("%Y-%m-%d_%H%M%S%z", $twrp_time + $offset);
$before =~ s/ /_/g;
$after =~ s/ /_/g;
print "mv '$line' ${before}${new_time_string}${after}\n";
}
Output looks like
Code:
mv '1970-02-22--23-02-13 omni_hammerhead-userdebug 4.4.2 KOT49H 128' 2014-01-30_155017-0800_omni_hammerhead-userdebug_4.4.2_KOT49H_128
mv '1970-02-23--13-50-29 omni_hammerhead-userdebug 4.4.2 KOT49H 128' 2014-01-31_063833-0800_omni_hammerhead-userdebug_4.4.2_KOT49H_128
mv '1970-02-23--15-22-06 omni_hammerhead-userdebug 4.4.2 KOT49H 126' 2014-01-31_081010-0800_omni_hammerhead-userdebug_4.4.2_KOT49H_126
mv '1970-02-23--16-10-01 omni_hammerhead-userdebug 4.4.2 KOT49H 126' 2014-01-31_085805-0800_omni_hammerhead-userdebug_4.4.2_KOT49H_126
mv '1970-02-25--17-11-08 omni_hammerhead-userdebug 4.4.2 KOT49H 127' 2014-02-02_095912-0800_omni_hammerhead-userdebug_4.4.2_KOT49H_127
which you can copy and paste into a shell on your device, or other places you have your TWRP backups backed up.
.
Whoa! Nice one man! A bit of extra work is just fine rather than renaming each of the backups! Thanks a bunch
Sent from my Nexus 5 using Tapatalk
good work bro.
Possible a zip file to flash for this ?
tks
jonata said:
Possible a zip file to flash for this ?
Click to expand...
Click to collapse
Let me look into what options there are in toolbox/busybox for the date parsing. As this was a quick-and-dirty solution, I didn't dive into trying to get it to run on the device.
Umm,, huh?
NEXUS 5
dave2metz said:
Umm,, huh?
Click to expand...
Click to collapse
To be clear, the perl scripts run on something that has perl installed, like your laptop or desktop. The output runs just fine over adb shell to rename files on your phone. It also works just fine to rename the backup copies that you are keeping on your Mac, Linux, FreeBSD box. For Windows without Cygwin or similar, you'd want to change "mv" to "move"
Edit -- shell scripts for on-phone use added to lead post
So open in terminal on phone and run ?
sent from my hammerhead
Yes, or over "adb shell" which makes cut-and-paste a lot easier.
Posted from whatever phone booted today.
Mine has it on the box!
Sent by mobile telephone.

[Q] How to manually root a Samsung smartphone?

There's a lot of nifty tools that will automatically root my phone with pre-packaged system images (CF-Auto-Root et al). However, I'd prefer not to load my phone with firmwares from internet strangers. Also, I try to avoid apps whose code I can't see (e.g. SuperSu).
What I'd like to do is take the system preloaded on my Galaxy Note 4 by Samsung (or the recovery image) and modify it manually so that I have root access. As I understand it, this should be a fairly reproducible process. (Chainfire wrote somewhere that he has a script that automatically generates rooted images from vendor images as new versions are released.)
Please, help me do it manually. Assume I have some general Linux knowledge (your typical Ubuntu user), but no Android development skills.
bump
bump
You can't. You will have to use one of the SU binaries and SU packages. Other then that you will have to find an exploit in the base system and then code a whole new binary and app.
Yes he has a script, but that is only after years of working on the exploit for root.
Axure said:
There's a lot of nifty tools that will automatically root my phone with pre-packaged system images (CF-Auto-Root et al). However, I'd prefer not to load my phone with firmwares from internet strangers. Also, I try to avoid apps whose code I can't see (e.g. SuperSu).
What I'd like to do is take the system preloaded on my Galaxy Note 4 by Samsung (or the recovery image) and modify it manually so that I have root access. As I understand it, this should be a fairly reproducible process. (Chainfire wrote somewhere that he has a script that automatically generates rooted images from vendor images as new versions are released.)
Please, help me do it manually. Assume I have some general Linux knowledge (your typical Ubuntu user), but no Android development skills.
Click to expand...
Click to collapse
1º Download source code or unpack boot.img with unpackbootimg tool,
2º then unpack the ramdisk,
3º edit default.prop
Code:
ro.secure=0
ro.debuggable=1
persist.service.adb.enable=1
4º $ cd ramdisk
5º $ find . | cpio -o -H newc | gzip > ../newramdisk.cpio.gz
6º mkbootimg with the proper settings
7º ???
8º profit

P40 Pro+ Preload and CUST for EMUI 11 (C432)

Hi all,
Just would like to share some cust and preload files needed for updating to EMUI 11. I don't think these firmwares are available on Firmaware Finder.
Code:
ELS-N39-PRELOAD 11.0.0.3(C432R3)
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v464313/f1/full/changelog_preload_hw_eu_R3.xml
Code:
ELS-N39-CUST 11.0.0.3(C432)
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v464311/f1/full/changelog_cust_hw_eu.xml
How I find these:
I wrote a python scraper which goes through all urls like:
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v{version_number}/f1/full/changelog_preload_hw_eu_R3.xml
Click to expand...
Click to collapse
where version_number is from 400000, 510000
the file name part "/changelog_preload_hw_eu_R3.xml" makes sure all paths found are for C432(eu) and R3.
Land on a OTA - updatable firmware
I used the following OS firmare:
Code:
ELS-LGRP6-OVS 11.0.0.151
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v492669/f1/full//update_full_base.zip
After which, I got an OTA update to 11.0.0.168
This can solve the problem many people are having: Not getting updates after downgrade.
This working.....juhuhu....thanks!
Usually when you can't get OTA is because oeminfo is broken (Broken as in it has the wrong strings in it). I had to manually edit mine to get OTA back.
But if it works it's good for you.
realseangao said:
I wrote a python scraper which goes through all urls like:
where version_number is from 400000, 510000
the file name part "/changelog_preload_hw_eu_R3.xml" makes sure all paths found are for C432(eu) and R3.
Click to expand...
Click to collapse
Share script
oslo83 said:
Share script
Click to expand...
Click to collapse
This is in python3, I made use of aiohttp to boost the speed. You might want to pip install aiohttp before hand.
Python:
import asyncio
import aiohttp
from time import sleep
cust_template = "http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v{}/f1/full/changelog_cust_hw_eu.xml"
preload_template = "http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v{}/f1/full/changelog_preload_hw_eu_R3.xml"
async def get(i):
url = cust_template.format(i)
try:
async with aiohttp.ClientSession() as session:
async with session.get(url=url) as response:
if (response.status == 200):
print("Found: {}".format(i))
return i
else:
print('Checked: {}, Status Code: {}'.format(url, response.status))
except Exception as e:
print("Unable to get url {} due to {}.".format(url, e.__class__))
return None
async def main(start, end):
ret = await asyncio.gather(*[get(i) for i in range(start, end)])
filtered = list(filter(None, ret))
print("Finalized batch. ret is a list of: {}".format(filtered))
return filtered
res = []
for i in range(460000, 470000, 1000):
print("Start new round: {}".format(i))
res.extend(asyncio.run(main(i, i + 1000)))
print("Ending round: {}".format(res))
# The server has DDOS protection
sleep(5)
print('Final versions found: {}'.format(res))
ante0 said:
Usually when you can't get OTA is because oeminfo is broken (Broken as in it has the wrong strings in it). I had to manually edit mine to get OTA back.
But if it works it's good for you.
Click to expand...
Click to collapse
The reason my OTA was not working was that I landed on a version that has never been officially pushed out from Huawei onto P40 pro plus but shows up in Firmware Finder (I was on 10.1.0.182 before).
I am assuming when pushing updates Huawei server checks your OS version info to determine your next update:
As a made-up example:
If you are on 11.0.151, it will give you 11.0.168
If you are on 11.0.152, server does not know which version to give you since in Huawei's database, you should not land on 11.0.152.
Just as data points:
ELS-LGRP6-OVS 11.0.0.168 and 11.0.0.151 are both official versions for my ELS-N39 (C432)
realseangao said:
Hi all,
Just would like to share some cust and preload files needed for updating to EMUI 11. I don't think these firmwares are available on Firmaware Finder.
Click to expand...
Click to collapse
Hi,
Thanks for sharing this with us, I tried it and it worked flawless, I even got the OTA updates back and updated to 11.0.0.168
Excellent job mate
Really THANK YOU !
Now i'm back on EMUI 11 !
realseangao said:
Hi all,
Just would like to share some cust and preload files needed for updating to EMUI 11. I don't think these firmwares are available on Firmaware Finder.
Code:
ELS-N39-PRELOAD 11.0.0.3(C432R3)
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v464313/f1/full/changelog_preload_hw_eu_R3.xml
Code:
ELS-N39-CUST 11.0.0.3(C432)
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v464311/f1/full/changelog_cust_hw_eu.xml
How I find these:
I wrote a python scraper which goes through all urls like:
where version_number is from 400000, 510000
the file name part "/changelog_preload_hw_eu_R3.xml" makes sure all paths found are for C432(eu) and R3.
Land on a OTA - updatable firmware
I used the following OS firmare:
Code:
ELS-LGRP6-OVS 11.0.0.151
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v492669/f1/full//update_full_base.zip
After which, I got an OTA update to 11.0.0.168
This can solve the problem many people are having: Not getting updates after downgrade.
Click to expand...
Click to collapse
I don't know that this is right.
And if you don't mind Please suggest me to relock bootloader.
hi all, i'm on 10.1.0.137(C636E3R1P1). I tried to find firmware package URL from Firmware Finder but found that 10.1.0.175 and the rest of the firmware are not available anymore. Error: The remote server returned an error: (404) Not Found.
Can anyone help to provide the package URL so that I can upgrade my firmware from 10.1.0.137 to 10.1.0.175 then to 11.0.0.151?
realseangao said:
Hi all,
Just would like to share some cust and preload files needed for updating to EMUI 11. I don't think these firmwares are available on Firmaware Finder.
Snip...
Click to expand...
Click to collapse
That's a really useful post and thank you for the Python script to help us do it for ourselves. I think I am a little late as it seems 'something has changed'
Following the links in my browser, I am receiving the not very useful page 'error' from any of the links posted for http://update.dbankcdn.com/
In addition, the Python script is returning (a lot of) 404's:
Checked: http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v460009/f1/full/changelog_cust_hw_eu.xml, Status Code: 404
Checked: http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v460029/f1/full/changelog_cust_hw_eu.xml, Status Code: 404
Checked: http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v460008/f1/full/changelog_cust_hw_eu.xml, Status Code: 404
... snip ... etc.,
I'd be very grateful if someone can help find an OTA updateable EMUI 11 firmware please. I am currently (stuck) on 10.1.0.145 (C432E2R3P3). If it's something as straightforward as a tweak to the URL's in the script, then great and thanks in advance.
I am aware of available firmware here, but 11.0.0.5 looks pretty old in comparison to 11.0.0.168 - and it's not clear whether I'd be able to update with OTA after installing that firmware.
realseangao said:
Hi all,
Just would like to share some cust and preload files needed for updating to EMUI 11. I don't think these firmwares are available on Firmaware Finder.
Code:
ELS-N39-PRELOAD 11.0.0.3(C432R3)
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v464313/f1/full/changelog_preload_hw_eu_R3.xml
Code:
ELS-N39-CUST 11.0.0.3(C432)
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v464311/f1/full/changelog_cust_hw_eu.xml
How I find these:
I wrote a python scraper which goes through all urls like:
where version_number is from 400000, 510000
the file name part "/changelog_preload_hw_eu_R3.xml" makes sure all paths found are for C432(eu) and R3.
Land on a OTA - updatable firmware
I used the following OS firmare:
Code:
ELS-LGRP6-OVS 11.0.0.151
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v492669/f1/full//update_full_base.zip
After which, I got an OTA update to 11.0.0.168
This can solve the problem many people are having: Not getting updates after downgrade.
Click to expand...
Click to collapse
AndroidKittyCat said:
That's a really useful post and thank you for the Python script to help us do it for ourselves. I think I am a little late as it seems 'something has changed'
Following the links in my browser, I am receiving the not very useful page 'error' from any of the links posted for http://update.dbankcdn.com/
In addition, the Python script is returning (a lot of) 404's:
Checked: http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v460009/f1/full/changelog_cust_hw_eu.xml, Status Code: 404
Checked: http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v460029/f1/full/changelog_cust_hw_eu.xml, Status Code: 404
Checked: http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v460008/f1/full/changelog_cust_hw_eu.xml, Status Code: 404
... snip ... etc.,
I'd be very grateful if someone can help find an OTA updateable EMUI 11 firmware please. I am currently (stuck) on 10.1.0.145 (C432E2R3P3). If it's something as straightforward as a tweak to the URL's in the script, then great and thanks in advance.
I am aware of available firmware here, but 11.0.0.5 looks pretty old in comparison to 11.0.0.168 - and it's not clear whether I'd be able to update with OTA after installing that firmware.
Click to expand...
Click to collapse
realseangao said:
Hi all,
Just would like to share some cust and preload files needed for updating to EMUI 11. I don't think these firmwares are available on Firmaware Finder.
Code:
ELS-N39-PRELOAD 11.0.0.3(C432R3)
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v464313/f1/full/changelog_preload_hw_eu_R3.xml
Code:
ELS-N39-CUST 11.0.0.3(C432)
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v464311/f1/full/changelog_cust_hw_eu.xml
How I find these:
I wrote a python scraper which goes through all urls like:
where version_number is from 400000, 510000
the file name part "/changelog_preload_hw_eu_R3.xml" makes sure all paths found are for C432(eu) and R3.
Land on a OTA - updatable firmware
I used the following OS firmare:
Code:
ELS-LGRP6-OVS 11.0.0.151
http://update.dbankcdn.com/TDS/data/files/p3/s15/G6613/g1755/v492669/f1/full//update_full_base.zip
After which, I got an OTA update to 11.0.0.168
This can solve the problem many people are having: Not getting updates after downgrade.
Click to expand...
Click to collapse
Hi. I'm having issues with my phone and I was searching for ways to sort it out. I came across this but seems like the links are unavailable. Do you perhaps have another download link? For the cust files, preload file and Ota?
Link geht leider nicht mehr.
could you help us with some links i do have the same problem
I received a lot of help in this thread, which enabled me to upgrade my P40 Pro + after getting GMS working.
I hope it helps.

Categories

Resources