Easy Porting Guide For HyperOS & MIUI Based Roms :
--Debloat [According to your partition size] the rom base which you're taking for port.
--Take vendor and odm from stock
--Change device codename on mi_ext and product build.prop
--Replace Aospframeworkresoverlay, devicesoverlay, devicesandroidoverlay from your stock rom
--Replace displayconfig & device_features in product etc.
--Add apex in system_ext/apex from your stock rom
--pack And clean flash the super
Some Basic Fixes :
For Fixing DPI issue, add this in
product/build.prop
-persist.miui.density_v2=440
-ro.sf.lcd_density=440
(*Values are depends on device)
•For Fixing Low Brightness Issue
In
•Aospframeworkresoverlay.apk/recourses.arc/integer/integer
You'll get three lines at the bottom named starting like
•config_screenBrightnessSetting
[Hold and click properties then add _hyphen After each of those three]
•If You're getting UI blur related issues add these on product/bui
ld.prop
-ro.miui.backdrop_sampling_enabled=true
-ro.miui.has_real_blur=1
-ro.miui.has_blur=1
-ro.miui.has_handy_mode_sf=1
-ro.launcher.blur.appLaunch=1
-ro.surface_flinger.supports_background_blur=1
-ro.sf.blurs_are_expensive=1
-persist.sys.sf.disable_blurs=false
-enable_blurs_on_windows=1
-ro.sf.blurs_are_caro=0
-persist.sys.background_blur_supported=true
-persist.sys.background_blur_status_default=true
-persist.sys.background_blur_version=2
-persist.sys.add_blurnoise_supported=true
-persist.sys.background_blu
r_mode=1
•If Facing laggy or slow animations add this on same prop
-persist.sys.miui_animator_sched.bigcores=4-6
-persist.sys.miui_animator_sched.sched_threads=3
-persist.sys.miui.sf_cores=4-7
-persist.vendor.display.miui.composer_boost=4-7
-persist.sys.miui_animator_sched.big_prime_cores=4-7
-persist.sys.minfree_def=73728,92160,110592,154832,482560,579072
-persist.sys.minfree_6g=73728,92160,110592,258048,663552,903168
-persist.sys.minfree_8g=73728,92160,110592,387072,1105920,1451520
•NFC related issues
Mostly in MIUI/HyperOS Roms nfc app present on "Pangu" folder
Remove NFC app from that folder and move to system or system_ext
And move permission xml's on system/etc/permission
•If Missing PlayStore even after
adding it by default
- add "com.android.vending" permission xml from your stock rom or any gapps packages like nikGapps.
•If Missing Some System Apps On Home screen (like themes, security)
Check Product/data-app, if there exists any same name packages in low size (around 2,3mb) And named like -
SecurityCenterManager, themestoremanager Add those to product/priv-app.
•Don't forget to add camera or camera mod from your stock rom
•If Still not booted then try
permissiver or flash any kernel which have permissive selective installation process
•Make Sure Your Vendor is decrypted other wise flash DFE file too while flashing