Hello
I would like to use Android on my HD2. I was searching and testing many ROMS but I didn´t find any rom which is usable for me. I would like to have a ROM that is without Sense, has Multilanguage support and is on Android 2.2 version.
So I decided that I would make my own.
0) I was reading
HTML:
http://forum.xda-developers.com/showpost.php?p=10291851&postcount=1
and made this procedure.
1)downloaded some ROM from here
2)unpacked this rom in linux with :
Code:
unyaffs system.img
then I got this directories:
Code:
app bin build.prop etc fonts framework lib media usr xbin
3)I downloaded update-cm-6.1.1-N1-signed.zip from CyanogenMod Forum > Downloads > Stable Mod > Nexus One and unpacked. I got : META-INF system boot.img.
4)I copied everything what was described step 0 from directories from step 2 to directory system from step 3
5)I downloaded and copied build.prop from step 0 to system
6) I updated permition like it is described in step 0
7) I created system.img with command : mkyaffs2image . ../system.img
Then I copied this system.img from linux to my windows and put this file in directory in which was different NAND rom. (replaced system.img). After that I flashed my phone and it did not work. Screen was frozen after booting and only green HTC was on display.
Can somebody please help me and give me some advice or some small howto. Does anybody know what can be wrong?
UPDATE: If I unpacking any nand roms and packing back everything is ok They must by any problem in me procedure of creating.
Thank you
Michal Fichtner
Sup XDA,
So i want to dual boot my phone (S5 duos) using dual boot patcher but i am getting problems
My problem: when flashing the patched rom i will get an error of system not being read able file system.
Firstly (for duos users) :
If you patch a rom for dual booting you might get an error 7
The problem is that klteduos is not a supported device by dual boot patcher but
there is cheeky way to get around that...if u still get the error then your device id is klte just use the original patched file
Lets get into it:
Disclaimer : I am not responsible for any damage to the phone.
Ok so first u will need to move the pached rom file to your computer.
Then you have to extract it.
Then open the folder "multiboot" you will find three file find the one with updater something like that(it will have # in the starting of most of the lines use notepad ++)
Open that file you will find a list of devices under that there is a line without # instead of klte change it to klteduos
Just put the files back in a zip archive and you are done.
i am trying remount thing if it works i will edit
i as installing aroma rom so inapp installation didnt work, asked to do it on recovery when installing on recovery it didnt work either
HOW TO PORT ROMS IN WINDOWS
WARNING :- I AM NOT RESPONSIBLE FOR BRICKED DEVICES, DEAD SD CARDS OR ANY OTHER STUFFS HAPPEN WITH YOU.
WARNING:- THIS IS FOR SNAPDRAGON DEVICES ONLY.
YOU NEED A WORKING A PC AND SOME SOFTWARES LIKE:-
WINRAR (https://www.win-rar.com/download.html?&L=0)
NOTEPAD++ (https://notepad-plus-plus.org/)
ANDROID IMAGE KITCHEN (https://mega.nz/#F!P5AA3azC!AijFT4S-dAwbt88eKkTIMA)
EXTRACTOR 4.0 (https://mega.nz/#F!y0YhwT5D!SX6cQ7lPv7XGiH7GLDXLyw)
MELD (https://download.gnome.org/binaries/win32/meld/?_e_pi_=7,PAGE_ID10,4038285101)
SO HERE WE GO,
STEP 1
EXTRACT YOUR BASE ROM AND PORT ROM IN TWO DIFFERENT FOLDER.
STEP 2
MAKE TWO DIFFERENT FOLDER AND NAME THEM PORT BOOT IMAGE AND BASE BOOT IMAGE.
(NOT INSIDE THE ROM FOLDER)
STEP 3
COPY THE BASE BOOT IMAGE IN BASE BOOT IMAGE FOLDER
AND COPY THE PORT BOOT IMAGE IN PORT BOOT IMAGE FOLDER
STEP 4
USING ANDROID IMAGE KITCHEN
EXTRACT BOTH BOOT IMAGE (BASE AND PORT)
STEP 5
REPLACE [/SPLIT_IMG/boot.img-zImage](AFTER EXTRACTION )
REPLACE [/SPLIT_IMG/boot.img-dtb](AFTER EXTRACTION )
(FROM BASE BOOT IMAGE TO PORT BOOT IMAGE)
STEP 6
USING MELD,
COMPARE FILES [RAMDISK/INIT.RC]
COMPARE FILES [RAMDISK/FSTAB.QCOM]
(FROM BASE BOOT IMAGE TO PORT BOOT IMAGE)
STEP 7
USING ANDROID IMAGE KITCHEN
REPACK YOUR BOOT IMAGE.
FINALLY WE HAVE PORTED BOOT IMAGE !!!STEP 8
EDIT YOUR UPDATE SCRIPT PRESENT IN [PORT ROM/META-INF/COM/GOOGLE/ANDROID/UPDATE SCRIPT]
ERASE
getprop("ro.product.device") == "XXXXXXX" || abort("This package is for "XXXXXX"" devices; this is a "" + getprop("ro.product.device")
FROM THE UPDATE SCRIPT
STEP 9
EDIT YOUR BUILD.PROP USING NOTEPAD++
COMPARE LCD DENSITY IN BUILD.PROP [PORT ROM/SYSTEM][WITH BASE ROM/SYSTEM/BUILD.PROP]
CHANGE YOUR MODEL NO. IN THESE LINES [IN PORT ROM'S BUILD.PROP]
ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.device=
STEP 10
REPACK YOUR PORT ROM USING WINRAR
DONE !!!
HOW TO PORT ROM IN LINUX
FIRST STEP :-- INSTALL PACKAGES
ZIP, UNZIP, PYTHON,ADB, FASTBOOT, MELD
FOR DEBIAN BASED LINUX
Code:
sudo apt update; sudo apt install zip adb meld fastboot python unzip zip
DOWNLOAD THESE AND EXTRACT IT IN SEPERATE FOLDER
SUPERR 'S KITCHEN (https://forum.xda-developers.com/ap...chen-superr-s-kitchen-v1-1-50-v2-1-6-t3597434)
AIK-LINUX (https://forum.xda-developers.com/showthread.php?t=2073775) EXTRACT THIS 2 TIME AND NAME IT PORT BOOT AND STOCK BOOT
IF YOU HAVE SYSTEM FOLDER THEN
MAKE TWO FOLDER NAME STOCK AND PORT
FOR MAKING FOLDER
Code:
mkdir stock port
(YOU CAN REPLACE THE NAME)
HERE WE GOT TWO FOLDERS, COPY YOUR STOCK ROM IN STOCK FOLDER AND PORT IN PORT FOLDER
THEN EXTRACT BOTH FILES BY UNZIP LIKE
Code:
[email protected]:~/path/to/your/rom/stock$ unzip *.zip
SAME FOR PORT ROM
Code:
[email protected]:~/path/to/your/rom/port$ unzip *.zip
NOW WE HAVE TO PORT THE BOOT IMAGE
GO TO WHERE YOU HAVE EXTRACTED AIK-LINUX , COPY THE STOCK BOOT IMAGE IN STOCK BOOT FOLDER AND PORT IN PORT BOOT FOLDER
NOW EXTRACT BOOT IMAGE
Code:
[email protected]:~/path/to/your/aik-linux/stock boot$ ./unpackimg.sh
AND SAME WITH PORT
Code:
[email protected]:~/path/to/your/aik-linux/port boot$ ./unpackimg.sh
NOW REPLACE, (FROM STOCK TO PORT
Code:
/SPLIT_IMG/BOOT.IMG-ZIMAGE
/SPLIT_IMG/BOOT.IMG-DTB
AFTER THAT USE MELD FOR COMPARING RAMDISK FILES, FOR MELD WRITE THIS IN TERMINAL
Code:
sudo meld
COMPARE,(FROM STOCK TO PORT
Code:
/ramdisk/fstab.qcom
/ramdisk/init.rc
/ramdisk/uneventd.rc
/ramdisk/uneventd.qcom.rc
NOW REPACK THE PORT BOOT IMAGE BY
Code:
[email protected]:~/path/to/your/aik-linux/port boot$ ./repackimg.sh
NOW WE HAVE SUCCESSFULLY PORTED THE BOOT IMAGE
PLACE IT IN YOUR PORT ROM
NOW THROUGH MELD, COMPARE YOUR BUILD.PROP FOR LCD DENSITY AND DEVICE NAME AND BRAND (FROM STOCK TO PORT
NOW OPEN YOUR UPDATER-SCRIPT PATH:- PORT ROM/META-INF/COM/GOOGLE/ANDROID
REMOVE THESE LINES IF IT HAVE
Code:
getprop("ro.product.device") == "XXXXXXX" || abort("This package is for "XXXXXX"" devices; this is a "" + getprop("ro.product.device")
AND REPLACE YOUR MOUNT SYSTEM,FORMAT SYSTEM AND BOOT.IMG FLASHING LINE FROM YOUR STOCK UPDATER-SCRIPT
REPACK YOUR ROM BY
Code:
[email protected]:~/path/to/your/port rom$ zip -r $ROMNAME meta-inf system boot.img
REPLACE $ROMNAME WITH YOUR ROM ZIP NAME AND IF YOU HAVE FOLDER TO COMPRESS JUST ADD THOSE AFTER META-INF WITH SPACE BETWEEN EACH FOLDER
DONE !!!
IF YOU HAVE SYSTEM.IMG OR SYSTEM.NEW.DAT.BR OR SYSTEM.NEW.DAT
USE SUPERR KITCHEN TO EXTRACT THOSE AND USE METHOD WRITTEN A BIT ABOVE
bro i am totally new in porting field....however i tried porting MIUI 9 for yu yunique.....but no succeed....can you plz tell is it possible to port miui 9 custom rom for yu yunique... i Take port rom for redmi 2 and base rom MIUI 8 by Xinid for yu yunique........however i tried all the tuitorial on xda but not even single was helped... i soft bricked my deice more than 15 times....Is it compatible for yu yunique?? i found both devices has almost same configuration and android version also same.... Whats wrong??/
@AYUSH KUMAR
Hi,
Can you make a video for that? I can't do it because I don't speak English. I'm thinking of uploading the Miui 10 to Asus Ze552kl.
Bye.
Chakari said:
@AYUSH KUMAR
Hi,
Can you make a video for that? I can't do it because I don't speak English. I'm thinking of uploading the Miui 10 to Asus Ze552kl.
Bye.
Click to expand...
Click to collapse
Sorry I dont have a youtube video
@KumarAyush after Porting twrp shows this message
help me to port rom
sarthak darshan said:
@KumarAyush after Porting twrp shows this message
help me to port rom
Click to expand...
Click to collapse
That's Mount line in updater-script change it according to stock
can i port lineageos 15.1 from xperia v with msm8960 1gb ram to samsung s3 d2 with 14.1 and same chipset but 2 gb ram?
hi help me to port oneplus 5 rom to zenfone 4 pro(ZS551KL) thank you
Hi, first i want to thank you because making this tutorial, however because i'm new to this porting world, i'm stuck on a problem, the problem is, after following your steps, zipped it and flashed it on my phone, it goes to recovery back again and again when i press the reboot button, and i don't know how to solve this. can you help me? here some details about my port ROM:
ROM i want to Port: RR 5.8.5 [7.1.2_r29] [N] [OFFICIAL][LENOVO A6000]
ROM i use as Base: AOSP_RRO_Rev3 [6.0.1] [M] [UNOFFICIAL][C46B2G] (an Indonesian Phone, i think you don't know about it)
plis reply bro i'm stuck
hi,
I'm trying to port an Android 10 rom to an original that is Android 7 based. I don't see a vendor partition on this Nubia N3 original scripts (just a bunch of others).
Any idea how to fix that?
Do I need to repartition?
It's not treble ready. I am trying to port Redmi Note Pro 6 Android 10 pixel experience to an NX608J.
Any tips are greatly appreciated.
It working well i ported from Galaxy On7 to J5 2015 on miui 9 rom But touch screen not working : ( i flashed again and my phone is really dead : ( after flashed the rom!
Hey guys please suggest me similar devices to lenovo tab 10 tbx-103f. 1gb ram and 16 GB storage. Please. Anyone.
kumarayush2104 said:
HOW TO PORT ROMS IN WINDOWS
WARNING :- I AM NOT RESPONSIBLE FOR BRICKED DEVICES, DEAD SD CARDS OR ANY OTHER STUFFS HAPPEN WITH YOU.
WARNING:- THIS IS FOR SNAPDRAGON DEVICES ONLY.
YOU NEED A WORKING A PC AND SOME SOFTWARES LIKE:-
WINRAR (https://www.win-rar.com/download.html?&L=0)
NOTEPAD++ (https://notepad-plus-plus.org/)
ANDROID IMAGE KITCHEN (https://mega.nz/#F!P5AA3azC!AijFT4S-dAwbt88eKkTIMA)
EXTRACTOR 4.0 (https://mega.nz/#F!y0YhwT5D!SX6cQ7lPv7XGiH7GLDXLyw)
MELD (https://download.gnome.org/binaries/win32/meld/?_e_pi_=7,PAGE_ID10,4038285101)
SO HERE WE GO,
STEP 1
EXTRACT YOUR BASE ROM AND PORT ROM IN TWO DIFFERENT FOLDER.
STEP 2
MAKE TWO DIFFERENT FOLDER AND NAME THEM PORT BOOT IMAGE AND BASE BOOT IMAGE.
(NOT INSIDE THE ROM FOLDER)
STEP 3
COPY THE BASE BOOT IMAGE IN BASE BOOT IMAGE FOLDER
AND COPY THE PORT BOOT IMAGE IN PORT BOOT IMAGE FOLDER
STEP 4
USING ANDROID IMAGE KITCHEN
EXTRACT BOTH BOOT IMAGE (BASE AND PORT)
STEP 5
REPLACE [/SPLIT_IMG/boot.img-zImage](AFTER EXTRACTION )
REPLACE [/SPLIT_IMG/boot.img-dtb](AFTER EXTRACTION )
(FROM BASE BOOT IMAGE TO PORT BOOT IMAGE)
STEP 6
USING MELD,
COMPARE FILES [RAMDISK/INIT.RC]
COMPARE FILES [RAMDISK/FSTAB.QCOM]
(FROM BASE BOOT IMAGE TO PORT BOOT IMAGE)
STEP 7
USING ANDROID IMAGE KITCHEN
REPACK YOUR BOOT IMAGE.
FINALLY WE HAVE PORTED BOOT IMAGE !!!
STEP 8
EDIT YOUR UPDATE SCRIPT PRESENT IN [PORT ROM/META-INF/COM/GOOGLE/ANDROID/UPDATE SCRIPT]
ERASE
getprop("ro.product.device") == "XXXXXXX" || abort("This package is for "XXXXXX"" devices; this is a "" + getprop("ro.product.device")
FROM THE UPDATE SCRIPT
STEP 9
EDIT YOUR BUILD.PROP USING NOTEPAD++
COMPARE LCD DENSITY IN BUILD.PROP [PORT ROM/SYSTEM][WITH BASE ROM/SYSTEM/BUILD.PROP]
CHANGE YOUR MODEL NO. IN THESE LINES [IN PORT ROM'S BUILD.PROP]
ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.device=
STEP 10
REPACK YOUR PORT ROM USING WINRAR
DONE !!!
HOW TO PORT ROM IN LINUX
FIRST STEP :-- INSTALL PACKAGES
ZIP, UNZIP, PYTHON,ADB, FASTBOOT, MELD
FOR DEBIAN BASED LINUX
Code:
sudo apt update; sudo apt install zip adb meld fastboot python unzip zip
DOWNLOAD THESE AND EXTRACT IT IN SEPERATE FOLDER
SUPERR 'S KITCHEN (https://forum.xda-developers.com/ap...chen-superr-s-kitchen-v1-1-50-v2-1-6-t3597434)
AIK-LINUX (https://forum.xda-developers.com/showthread.php?t=2073775) EXTRACT THIS 2 TIME AND NAME IT PORT BOOT AND STOCK BOOT
IF YOU HAVE SYSTEM FOLDER THEN
MAKE TWO FOLDER NAME STOCK AND PORT
FOR MAKING FOLDER
Code:
mkdir stock port
(YOU CAN REPLACE THE NAME)
HERE WE GOT TWO FOLDERS, COPY YOUR STOCK ROM IN STOCK FOLDER AND PORT IN PORT FOLDER
THEN EXTRACT BOTH FILES BY UNZIP LIKE
Code:
[email protected]:~/path/to/your/rom/stock$ unzip *.zip
SAME FOR PORT ROM
Code:
[email protected]:~/path/to/your/rom/port$ unzip *.zip
NOW WE HAVE TO PORT THE BOOT IMAGE
GO TO WHERE YOU HAVE EXTRACTED AIK-LINUX , COPY THE STOCK BOOT IMAGE IN STOCK BOOT FOLDER AND PORT IN PORT BOOT FOLDER
NOW EXTRACT BOOT IMAGE
Code:
[email protected]:~/path/to/your/aik-linux/stock boot$ ./unpackimg.sh
AND SAME WITH PORT
Code:
[email protected]:~/path/to/your/aik-linux/port boot$ ./unpackimg.sh
NOW REPLACE, (FROM STOCK TO PORT
Code:
/SPLIT_IMG/BOOT.IMG-ZIMAGE
/SPLIT_IMG/BOOT.IMG-DTB
AFTER THAT USE MELD FOR COMPARING RAMDISK FILES, FOR MELD WRITE THIS IN TERMINAL
Code:
sudo meld
COMPARE,(FROM STOCK TO PORT
Code:
/ramdisk/fstab.qcom
/ramdisk/init.rc
/ramdisk/uneventd.rc
/ramdisk/uneventd.qcom.rc
NOW REPACK THE PORT BOOT IMAGE BY
Code:
[email protected]:~/path/to/your/aik-linux/port boot$ ./repackimg.sh
NOW WE HAVE SUCCESSFULLY PORTED THE BOOT IMAGE
PLACE IT IN YOUR PORT ROM
NOW THROUGH MELD, COMPARE YOUR BUILD.PROP FOR LCD DENSITY AND DEVICE NAME AND BRAND (FROM STOCK TO PORT
NOW OPEN YOUR UPDATER-SCRIPT PATH:- PORT ROM/META-INF/COM/GOOGLE/ANDROID
REMOVE THESE LINES IF IT HAVE
Code:
getprop("ro.product.device") == "XXXXXXX" || abort("This package is for "XXXXXX"" devices; this is a "" + getprop("ro.product.device")
AND REPLACE YOUR MOUNT SYSTEM,FORMAT SYSTEM AND BOOT.IMG FLASHING LINE FROM YOUR STOCK UPDATER-SCRIPT
REPACK YOUR ROM BY
Code:
[email protected]:~/path/to/your/port rom$ zip -r $ROMNAME meta-inf system boot.img
REPLACE $ROMNAME WITH YOUR ROM ZIP NAME AND IF YOU HAVE FOLDER TO COMPRESS JUST ADD THOSE AFTER META-INF WITH SPACE BETWEEN EACH FOLDER
DONE !!!
IF YOU HAVE SYSTEM.IMG OR SYSTEM.NEW.DAT.BR OR SYSTEM.NEW.DAT
USE SUPERR KITCHEN TO EXTRACT THOSE AND USE METHOD WRITTEN A BIT ABOVE
Click to expand...
Click to collapse
I am stuck at this here:
"
REPLACE [/SPLIT_IMG/boot.img-zImage](AFTER EXTRACTION )
REPLACE [/SPLIT_IMG/boot.img-dtb](AFTER EXTRACTION )"
those two files aren't there when i try to extract the boot image for the galaxy s5
hi guys!pls help a noob!!
Does anyone really knows how to properly edit build.prop op6t international rooted version oxygen os 9.0.16 without getting softbricked? To edit it, guess any beginner knows how..but when it comes on saving..thats a big prb...not only that the build.prop it erase itself.you can't paste back the original copied file into the system folder..it lets you to paste it but after shows 0 KB(same after saving error)
Got softbricked twice trying to modify the
ro.product.brand
ro.product.manufacturer
(couple lines up also) ro.build.product.device
//
I wonder if i try to edit/save anything gettin same bootloop:silly:
I didn't try with system_root folder (buil.prop its the same as original)...
// also need some info how to do a clean backup on the build.prop and system.cuz nandroid backup failed
//
extra info: tried with plenty prop editors same prb
twrp vers: 3.3.1 latest
magisk 19.3 latest
oxygen os up to date ...
pls check screenshots as well!!