[Guide] How to boot Port Rom - Oppo A37 Guides, News, & Discussion

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?

Related

What is treble and why is all the fuss about it?

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

Port Treble For Moto G5(S) Plus

Hólà XDA
Hey Devs, now time came to port Treble for our device,
Project treble is now available on Old G4 Plus (athene) and g5 plus (potter).....
According to my knowledge, Treble need an Partition where Vendor Hal's can be stored...
So i wanna to say, please port Treble Enabled TWRP for sanders, as moto g5 plus and g5s plus have same partition structure.....
Also, i had an question, if there's so no empty partition, like CUST on miui devices, can we create a partition using linux parted binary?????
Satyam_Mishra said:
Hólà XDA
Hey Devs, now time came to port Treble for our device,
Project treble is now available on Old G4 Plus (athene) and g5 plus (potter).....
According to my knowledge, Treble need an Partition where Vendor Hal's can be stored...
So i wanna to say, please port Treble Enabled TWRP for sanders, as moto g5 plus and g5s plus have same partition structure.....
Also, i had an question, if there's so no empty partition, like CUST on miui devices, can we create a partition using linux parted binary?????
Click to expand...
Click to collapse
Check correct information, G4/plus has got nothing, thats misunderstanding between treble support and recovery !!
That's recovery only, still not able to flash gsi roms...
For G5, that's vache and other devs, who worked hard to develop,
And as in linked thread, someone says geneticengineer is working on it. [ https://forum.xda-developers.com/moto-g5s-plus/help/project-treble-t3809787 ]
May be other developers too working for same..
Also, reported this thread as it's posted in wrong section and already many threads are there in Q/A section, just search before posting / creating new threads..

[GUIDE] [FORK] How to port ROMs with stock boot image

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?

Ubuntu touch GSI on Xiaomi MI 8

So, i heard ubuntu touch released a GSI image to flash with twrp but you need to recompile or patch the kernel to successfully boot it. I don't have the skills to do this alone just following the guide without any reference, so could someone look into this stuff to help me do this thing?
Thank you all, i would love to see ubuntu touch kde running on my phone. :victory: (pls don't look at my ridiculous username)
Recently Ubuntu Touch was ported to Mi 8, by me and NotKit. See my profile, for links, and install instructions

Question Realme 8 5g Port help

Hi everyone I recently wanted to start porting custom rom's to my phone but I don't know where to start (i want to port crdroid) i looked up the internet and found that i need to change some files in the port ROM in the system directory but I downloaded the ROM and there is no system directory.My phone is realme 8 5g(CPU:dimensity 700, ram 6 gb rom 128gb) Can anybody help me?

Categories

Resources