Introduction:
This guide was originally created by @Yashraj22, @Ayush kuMAR and @sumitr3ddy. I am here to modify the guide with better English and a more detailed guide. Enjoy!
How to choose a ROM to port:
Make sure that the ROM for the device from which you are trying to port have similar specification as your device, being the Oppo A37. Some important thing which should be same are listed below :
Processor (Snapdragon 410 ==> Snapdragon 410)
ROM must be 64 bit, more on that later
Resolution (1280*720) (Not as important, but better to follow)
What is a 64-bit ROM and a 32-bit ROM? How do I identify it?
A processor have a architecture, must Mobile CPU made within 4 years are 64-bit, but the Snapdragon 410 is a bit special, it supports both 32-bit and 64-bit. Since Oppo A37 is also using the Snapdragon 410, this is also true for the Oppo A37, because today we are using the stock kernel, we can only port 64-bit ROMs.
There's a few ways to identify a 64-bit ROM, here's a few:
1. Open the system image and look for lib64, if it is there, it is a 64-bit ROM
2. Open the system image and look for build.prop, open it. Search for "arm64-v8a", if you can find atleast one string of that text, it should be a 64-bit ROM
How to port boot.img:
Step 1. Unpack both stock and port boot.img (Tools are available down below)
Step 2. Navigate to the folder where the stock boot.img is unpacked
Step 3. Search for file "boot.img-kernel" and boot.img-dt" (It should have these names)
Step 4. Copy both files and paste them in the same folder where the port boot.img is unpacked
Step 5. Repack the port boot.img
Step 6. You can now add it to the flashable ROM file
This should make the ROM bootable, if it's not booting just try another ROM.
Best devices for porting:
Redmi 2/Redmi 2 Prime
Yu Yuphoria
Lenovo A6000/Lenovo A6000 Plus
Moto X Play
Wileyfox Swift
File downloads:
Porting Tools
Stock kernels
can i apply this method in porting lineage os roms?
john.reyes.jmr said:
can i apply this method in porting lineage os roms?
Click to expand...
Click to collapse
Most ROMs are working with this. Note marshmallow ROMs requires disabling sulinux.
Good ?? and thanks to mention my name
{Mod edit: Quote of deleted post removed}
STOP following me around.
{Mod edit: Quote of deleted post removed}
And also I will not give you the ROM because if you try to get it it means you are trying to get leaked builds and it is illegal.
??
sir i want to know if this procedure applay for devices like exinos 7570,,i wanto to do a port rom betwin twice devices that have the same procesor and sAME ARCHITECTure,,,
Can I port one UI and miui to my device?
Related
Any solution for the problem?
I can't instal wsm/xposed framework, because WSM is not compatible with Android SDK version 19.
pumpa007 said:
Any solution for the problem?
I can't instal wsm/xposed framework, because WSM is not compatible with Android SDK version 19.
Click to expand...
Click to collapse
You don't give enough info. For example what version of wsm tools you tried. I checked out one old tutorial for the Mi3 that didn't mention what miui they were using. The version of wsm-tools used makes me think v5.
Go to the link below, if you haven't already. It's recent and covers miui v6/v7. It has both Xposed and wsm-tools.
Despite Redmi in the file name for wsm I have it running on a G3 D851 with MIUI v7 (KitKat).
Just note that the modules downloadable from it are old (probably v5 stuff).
Recommended modules are also on that site.
http://ec2-54-243-194-135.compute-1.amazonaws.com/thread-78894-1-1.html
Below is that old tutorial. If nothing else there's a link in the comments section on how to handle a boot-looped Mi3 in case things go wrong.
All from 2014. [emoji55]
LG G3 D851, Pac-Man ROM, Tapatalk 4.9.5
marcdw said:
You don't give enough info. For example what version of wsm tools you tried. I checked out one old tutorial for the Mi3 that didn't mention what miui they were using. The version of wsm-tools used makes me think v5.
Go to the link below, if you haven't already. It's recent and covers miui v6/v7. It has both Xposed and wsm-tools.
Despite Redmi in the file name for wsm I have it running on a G3 D851 with MIUI v7 (KitKat).
Just note that the modules downloadable from it are old (probably v5 stuff).
Recommended modules are also on that site.
Below is that old tutorial. If nothing else there's a link in the comments section on how to handle a boot-looped Mi3 in case things go wrong.
All from 2014. [emoji55]
LG G3 D851, Pac-Man ROM, Tapatalk 4.9.5
Click to expand...
Click to collapse
The latest MIUI update broke both applications in that thread.
The error message WSM and Xposed give is:
"WSM/Xposed is not (yet) compatible with Android SDK version 19 or your processor architecture (armeabi-v7a)."
raiNiv5 said:
The latest MIUI update broke both applications in that thread.
The error message WSM and Xposed give is:
"WSM/Xposed is not (yet) compatible with Android SDK version 19 or your processor architecture (armeabi-v7a)."
Click to expand...
Click to collapse
That error looks to me like you're using a really old version of wsm-tools. Probably the one that was for MIUI v5 (JellyBean?).
sdk22 = 5.1
sdk21 = 5.0
sdk19 = 4.4 (KitKat)
Go to the first link I provided and try the one from there. It should work. :fingers crossed:
LG G3 D851, Pac-Man ROM, Tapatalk 4.9.5
marcdw said:
That error looks to me like you're using a really old version of wsm-tools. Probably the one that was for MIUI v5 (JellyBean?).
sdk22 = 5.1
sdk21 = 5.0
sdk19 = 4.4 (KitKat)
Go to the first link I provided and try the one from there. It should work. :fingers crossed:
LG G3 D851, Pac-Man ROM, Tapatalk 4.9.5
Click to expand...
Click to collapse
I'm using the latest WSM.
It worked on previous KitKat MIUI version just fine.
same problem
After miui yesterday update, i get the same problem too, before the update it works fine, i'm using the latest xposed for kitkat, i'm stuck now
Same problem here, its rom related, since android version is the same, it looks like they change the architecture (???) (WTF?)
I got the same problem. Do you think they gonna fix it with the next update?
Hi,
same problem here (Mi4W).
I tried 2 found fixes (WSM_XPOSED_5.9.25FIX.zip and WSM_XPOSED.zip) but no success.
Copy these files:
system/bin/app_process
system/lib/libandroid_runtime.so
from 5.9.17 installation (last working rom with xposed) and replace them in a newer version installation with a root explorer or recovery. Reboot. Xposed should work. Tested with Mi3, miui7, china develop rom 5.10.15.
Hi, are these files accessible while in the newer rom ?
I have the same problem on my Redmi 1S.
Did that solution worked for you all?
super-lexa said:
Copy these files:
system/bin/app_process
system/lib/libandroid_runtime.so
from 5.9.17 installation (last working rom with xposed) and replace them in a newer version installation with a root explorer or recovery. Reboot. Xposed should work. Tested with Mi3, miui7, china develop rom 5.10.15.
Click to expand...
Click to collapse
Do you mean replace in the ROM-ZIP-File?
Because I tried to replace on my Mi4W (with root-explorer) which rebooted immediately but can't reboot - hangs on the Mi-screen with "android" animation. I had to flash the ROM again.
I think I have to live without Xposed
regards
Edit: It works I replaced the mentioned files in the newest ZIP-file after download and flashed it.
Have you noticed app data increase? From 1mb to 2mb and so on. I overlooked the app for about a week and it reached up about 200mb.
super-lexa said:
Copy these files:
system/bin/app_process
system/lib/libandroid_runtime.so
from 5.9.17 installation (last working rom with xposed) and replace them in a newer version installation with a root explorer or recovery. Reboot. Xposed should work. Tested with Mi3, miui7, china develop rom 5.10.15.
Click to expand...
Click to collapse
Thanks for the tip, it didn't work the way you describe it (I couldn't replace the 2 files with root explorer since the system partition was mounted as read-only, and after storing them in recovery mode with adb push (fastboot) I got a boot loop), but at least you put me on the right track.
For other newbies who get the dreaded sdk19 error after trying to install the xposed framework on newer android 4.4.4 images and also struggle with this, this is how I did it:
1. Download the last OS image where xposed still worked properly. In my case, this was cyanogenmod 11 nightly build from 2015-11-08 for Samsung Galaxy S4.
2. Unzip the image and save the 2 files somewhere.
3. Download the new OS image you want to flash (in my case: cyanogenmod 11 nightly build from 2015-12-13) and unzip it.
4. Overwrite the 2 files in the appropriate folders of the new image with the old versions. Re-zip the folder, save to phone and flash in recovery.
Done, xposed framework works again, sdk19 error is gone.
Maybe rovo89 could update the installer so that image update is possible without such "hacking" in the future?
Hi,
what about Xposed with MIUI 7 and Android 6.0.1 MM? Is there a way to make it run?
Hello All,
I have seen posts across forum seeking support for installing Xposed Framework for our phone - Redmi 2 (wt88047).
For a new person it can be indeed confusing as Xposed files vary depending upon Android version (different for Android 5.0/5.1/6.0) as well as vary depending upon processor (different for arm, arm64, x86)
Hence this guide, following which one can easily find, download and install right version of Xposed Framework and can start enjoying various xposed modules.
Prerequisite is to have rooted phone with Custom Recovery (TWRP / CWM).
Now there are two variants of Xposed Framework. To get more insights pls read further else move to Step 1
1) Official release by rovo89 which works fine for ROMs like CM, AOSP and others based on CM, AOSP etc. Unfortunately this official version doesn't work with MIUI
2) Unofficial release by SolarWarez which is tweaked to work for MIUI devices. This works perfectly well for MIUI ROMs (including stock rom loaded on our phone as well as other custom MIUI versions like one from xiaomi.eu)
While I have linked to the original threads for the two xposed variants, it can be still confusing as there are total of 9 files (3 android versions multiplied by 3 processor types). Our device Redmi 2, though has 64-bit processor but all ROMs are 32 bit only. Hence we need to get arm files.
STEP 1 - Downloading the right type of files
File No. 1: XposedInstaller_3.0-alpha4.apk from here
File No. 2: Xposed*.zip (version 86 for all except MIUI Kitkat) installation file from below depending upon ROM type. For v87 go to next post below.
For devices running MIUI ROMs download one of the following files depending upon base android version (Lollipop / Marshmallow):
Xposed 2.6.1 for MIUI based on Android 4.4.X
SDK21 for MIUI based on Android v5.0 (Lollipop)
SDK22 for MIUI based on Android v5.1 (Lollipop)
SDK23 for MIUI based on Android v6.0 (Marshmallow)
For devices running CM, AOSP or other similar Custom ROMs download one of the following files depending upon base android version (Lollipop / Marshmallow):
SDK21 for Custom ROM based on Android v5.0 (Lollipop)
SDK22 for Custom ROM based on Android v5.1 (Lollipop)
SDK23 for Custom ROM based on Android v6.0 (Lollipop)
File No. 3: Xposed-uninstaller*.zip from here to uninstall the framework.
STEP 2 Installing the files
- Install Xposed Installer apk (file no. 1)
- Copy the Xposed*.zip (file no. 2) and the Xposed-uninstaller*.zip (file no. 3) to your sdcard
- Reboot to custom recovery
- Make a nandroid backup
- Flash "xposed*.zip" through custom recovery
- Reboot and wait, it may take several minutes to boot up depending on your ROM size and installed apps amount.
If phone doesn't boot even after 5 minutes then reboot into recovery and restore by using nandroid backup or by flashing Xposed-uninstaller*.zip
That's it... In case anything fails, pls read carefully and verify that right version of xposed*.zip file has been installed.
Credits to @rovo89 & @SolarWarez. If you like the work, pls donate to @rovo89
Press thanks if you find this thread helpful
Xposed Framework version 87
In post above, the xposed files are for version 86. But now we have v87 also available and hence sharing links for v87 in this post. This is actually file no. 2. Rest all steps as per above post.
Download Xposed*.zip (v87) from below link depending upon android version (LP, MM) and rom (MIUI / CM or AOSP) type.
For devices running MIUI ROMs download one of the following files depending upon base android version (Lollipop / Marshmallow):
SDK21 for MIUI based on Android v5.0 (Lollipop)
SDK22 for MIUI based on Android v5.1 (Lollipop)
SDK23 for MIUI based on Android v6.0 (Marshmallow)
For devices running CM, AOSP or other similar Custom ROMs download one of the following files depending upon base android version (Lollipop / Marshmallow):
SDK21 for Custom ROM based on Android v5.0 (Lollipop)
SDK22 for Custom ROM based on Android v5.1 (Lollipop)
SDK23 for Custom ROM based on Android v6.0 (Lollipop)
PRESS THANKS if you found this helpful.
I'm using Global Dev ROM - MIUI 8 which is on KK. I've installed the apk but it says unsupported
Akhil916 said:
I'm using Global Dev ROM - MIUI 8 which is on KK. I've installed the apk but it says unsupported
Click to expand...
Click to collapse
Sorry for late response... you need to install
SDK22 for MIUI based on Android v5.1 (Lollipop)
It works well for me..
mGforCe said:
Sorry for late response... you need to install
SDK22 for MIUI based on Android v5.1 (Lollipop)
It works well for me..
Click to expand...
Click to collapse
Wel, I should've edited my comment. I flashed the Lollipop ROM instead of KK. Hence, I was unable to. Thanks anyway
Akhil916 said:
Wel, I should've edited my comment. I flashed the Lollipop ROM instead of KK. Hence, I was unable to. Thanks anyway
Click to expand...
Click to collapse
Ok, so hope all working now.
mGforCe said:
Ok, so hope all working now.
Click to expand...
Click to collapse
Absolutely
Akhil916 said:
Absolutely
Click to expand...
Click to collapse
Good to know... [emoji1]
Sent from my mobile device
i have flashed successfully the .zip file all apps are working expect imei changer. plz guide or update if there any. I am on miui 7.5 stable 5.1 lolipop. please help
I'm having problems with Xposed for KK MIUI. I can't download modules. The Xposed Installer simply starts to download, and after one second stops the download. I have to install/update manually every module. I tried to download trough wifi and mobile data, without success. There is a solution? I need to install the 3.0 installer apk?
Help me Stuck in bot loop
I am using miui 8 china devloper rom 6.9.1 in redmi 2 prime. I have flashed the correct zip file but whet it reboots only boot animation runs. Plz suggest me what should i do for xposed framework
Lots of modules not working
I have XIAOMI REDMI 2 PRIME running MIUI 8 (LP 5.1.1).
Lots of modules not working like MaxLock Xmiui etc. I have activated it in Xposed Installer and tried reinstalling it.. still it is not working.
kindly suggest the solution..
I am using Redmi 2 with miui 8 and Android 4.4.4.
After installing the apk and framework my contacts is showing error and I am unable to open it please help me ASAP.
Similar here
Harikesh409 said:
I am using Redmi 2 with miui 8 and Android 4.4.4.
After installing the apk and framework my contacts is showing error and I am unable to open it please help me ASAP.
Click to expand...
Click to collapse
I updated from miui 7 to 8 but Redmi 2 prime on miui 8 is still based on Kitkat. Unlike 7 the Xposed doesn't work. It instals but ALL THE MODULES give FC no matter how or what I try
Harikesh409 said:
I am using Redmi 2 with miui 8 and Android 4.4.4.
After installing the apk and framework my contacts is showing error and I am unable to open it please help me ASAP.
Click to expand...
Click to collapse
Muntha_Go_Grand said:
I updated from miui 7 to 8 but Redmi 2 prime on miui 8 is still based on Kitkat. Unlike 7 the Xposed doesn't work. It instals but ALL THE MODULES give FC no matter how or what I try
Click to expand...
Click to collapse
Are the issues sorted?
Best is that you can first uninstall the xposed, reboot, install xposed and then see. This should help. For me working with MIUI LP (I flashed gkalen's version)
any development in Android. 7, i m using tesla rom
drrakesh85 said:
any development in Android. 7, i m using tesla rom
Click to expand...
Click to collapse
No. Pls check exposed subforum for same. As of now no release.
Sent from RN3 Pro
Updated to v87
Revised the main post. Also added links for latest xposed v87. Pls refer to second post.
After installing the files, i cant open the app xposed..
Sorry for my english
Sent from my 2014819 using Tapatalk
---------- Post added at 04:22 AM ---------- Previous post was at 04:07 AM ----------
12#21 said:
After installing the files, i cant open the app xposed..
Sorry for my english
Sent from my 2014819 using Tapatalk
Click to expand...
Click to collapse
Sorry my bad, i try reboot and absolutely work
Sent from my 2014819 using Tapatalk
Recently I saw that there appeared a new kind of roms which need a special recovery and, as I could find, have something to do with easier update of Android version. Also I have seen a project: https://forum.xda-developers.com/pr...-development/experimental-phh-treble-t3709659 which claims to have one rom file that can be flashed on a impressing number of roms. I saw the first comment by author which has a method to know if a device has support for treble and it is refered to run "treble check" app from play store on official rom. The thing is that I experimented and installed treble rom (lineage OS) from redmi 4x thread and did the check if the device is supported (the screenshot is attached below) and saw that on this rom it is supported, in contrary to MIUI. The question is about this controversion: is this device supported or not? Can I flash these ROMs from the thread? Are treble ROMs really like a universal flashable file for multiple devices?
If you flash GSI (Generic System Image) it will work on our device. Yes Treble roms are universally flashable if GSI is used, with some minimal modification for device specific. So porting roms will easier, and less time consuming.
Anyone can correct me, if i 'm wrong.
drthrax07 said:
If you flash GSI (Generic System Image) it will work on our device. Yes Treble roms are universally flashable if GSI is used, with some minimal modification for device specific. So porting roms will easier, and less time consuming.
Anyone can correct me, if i 'm wrong.
Click to expand...
Click to collapse
So if I flash the rim from this link specifically on redmi 4x, the device will have no harm at all?
ViorelRj said:
So if I flash the rim from this link specifically on redmi 4x, the device will have no harm at all?
Click to expand...
Click to collapse
Yes, but follow the instruction there. Our device is A-only device. Use the special recovery here for flashing. Or flash the lineageos 15.1 treble edition first just find in on our device forum.
drthrax07 said:
Yes, but follow the instruction there. Our device is A-only device. Use the special recovery here for flashing. Or flash the lineageos 15.1 treble edition first just find in on our device forum.
Click to expand...
Click to collapse
I have seen that seamless updates require A and B partition. I want to know what I am loosing with this device by having only the A partition (what really is seamless update and how does it work)? P.S. sorry for being annoying.
ViorelRj said:
I have seen that seamless updates require A and B partition. I want to know what I am loosing with this device by having only the A partition (what really is seamless update and how does it work)? P.S. sorry for being annoying.
Click to expand...
Click to collapse
As far as i know the seamlees update works this way:
In slot A you have installed any OS Example Android 8.1
In slot B there is a backup of the OS Om slot A
This mean you can install the ota of Android P (example) in one of the slots while you are on Facebook for example
Mod Annoucement: THREAD CLOSED. Duplicate of https://forum.xda-developers.com/oppo-a37/how-to/guide-how-to-boot-port-rom-t3882092
Introduction:
Hello guys am Yashraj Yadav, after alots of struggle and effort I am able to know how to boot port rom with the help of @AYUSH KUMAR and @sumitr3ddy so am sharing this method with you
How to chose device:
Make sure that the device from which you are porting rom has similar specification as your device some important thing which should be same are listed below :
Processor(Snapdragon 410 ==> Snapdragon 410)
Rom 64-bit to 64-bit, 32-bit to 32-bit
Resolution(1280*720)
Ram and Rom (not much necessary)
Camera(not much necessary)
How to Port boot.img:
Unpack the boot.img both stock and port (just google it in case you don't know how to do it)
Just go to folder where stock boot.img is unpacked
search for file "boot.img-zimage"(something like this)
And search for "boot.img-dtb"(something like this)
copy this both files and paste at same folder where port boot.img is unpacked
Repack the port boot.img
Done!!
This will make rom bootable, if not booting take rom from another device, Try this but if this not work (in roms like miui and roms like this ), try searching guide for that particular rom
Devices for Porting
From these devices you can try to port for oppo a37f
Redmi 2/Redmi 2 Prime
Yu Yuphoria
Lenovo a6000/Lenovo a6000 Plus
Moto x play
Hit thanks if you like?
Xiaomi has recently said that Redmi 6A will neither get Android 9.0 Pie update nor MIUI 11 update. So it's only a matter of time before they stop providing updates at all, including security or bugfix updates.
So, has anyone been trying to develop a custom ROM for this device? To inform everyone concerned, it's kernel sources have already been released. Also, I'm no developer, but due to the fact that this device supports Project Treble, it shouldn't be too hard to build a ROM for it. Or at least someone could try and build an arm64 version of the ROM, if possible (This device has a 32bit ROM running on a 64bit processor).
So I politely ask the developers present here on this forum to try and make a custom ROM for Xiaomi Redmi 6A. We'll all be thankful.
i don't know how many mediatek devices out there have custom roms, but i think it's not as easy as qualcomm devices to have custom roms.
i've tried many GSI images on my 6A and none booted, despite this device being compatible with Treble. Also i've read in some sites that it will indeed receive the miui 11 update, we just don't know when.
I really hope someone make an actual rom for our device, because this Treble and GSI thing is just an unneccessary ummount of hassle and the result seems to be rather buggy judging from all fixes and patches you have to flash after flashing a GSI.
Anyone can port Pie 9.0 rom from Oukitel C15 Pro Helio A22 chipset?
Danick8989 said:
I really hope someone make an actual rom for our device, because this Treble and GSI thing is just an unneccessary ummount of hassle and the result seems to be rather buggy judging from all fixes and patches you have to flash after flashing a GSI.
Click to expand...
Click to collapse
As far as I know, this device has a 64 bit processor, yet the ROM is 32 bit. Any idea why is it like this?
LeHalua said:
As far as I know, this device has a 64 bit processor, yet the ROM is 32 bit. Any idea why is it like this?
Click to expand...
Click to collapse
it's an ARMv7 processor, if you want to test GSI roms you need an ARM/A only GSI image. I've finally been able to install a custom GSI image that works properly, albeit with minor bugs. Still a proper custom ROM is unbeatable in my opinion.
Danick8989 said:
it's an ARMv7 processor, if you want to test GSI roms you need an ARM/A only GSI image.
Click to expand...
Click to collapse
Correct me if I'm wrong, but as far as I know, this device has Helio A22 chipset, with Cortex A53 processor, which is ARMv8 64bit.
https://www.mediatek.com/products/smartphones/mediatek-helio-a22
https://en.m.wikipedia.org/wiki/ARM_Cortex-A53
Only the ROM (including the kernel and everything) seems to be 32bit.
Flashing an arm64 GSI wont work, because other partitions like vendor will still be 32 bit, and thus make the GSI incompatible. We'll probably need a real custom ROM with all its components compiled as 64 bit.
LeHalua said:
Correct me if I'm wrong, but as far as I know, this device has Helio A22 chipset, with Cortex A53 processor, which is ARMv8 64bit.
https://www.mediatek.com/products/smartphones/mediatek-helio-a22
https://en.m.wikipedia.org/wiki/ARM_Cortex-A53
Only the ROM (including the kernel and everything) seems to be 32bit.
Flashing an arm64 GSI wont work, because other partitions like vendor will still be 32 bit, and thus make the GSI incompatible. We'll probably need a real custom ROM with all its components compiled as 64 bit.
Click to expand...
Click to collapse
If the cpu has 64bit support then i don't know why they didn't use it. But so far we only have ARM GSI as an option for custom rom.
translate: this is a tutorial made in Indonesia that makes the vendor redmi 6a / 6 certus = cactus / cereus to boot the arm64 rom, the rom uses the nusantaraos rom https://nusantararom.org/
edit: i put wrong link, now that real video