So i made a script that would automatically port a rom from any device to any device.
if your rom uses anything other than boot.img for kernel, copy it from base to port along with META-INF.
this also resizes images too if you have different dpis
how to use:
Extract a ROM that works with your phone. This is your base
Extract the ROM you want to port. This is port.
Extract the script.
Run portscriptv3.sh
Follow directions
Ill make a better post once i finish my HW
DL:
http://d-h.st/LDs
thanks to peteragent5 for the resizing thing
it port all rom or its possible to port only some features?
Inviato dal mio Galaxy Nexus con Tapatalk 2
This really looks like a good tool, but it really needs some instruction.
cpu999 said:
So i made a script that would automatically port a rom from any device to any device.
if your rom uses anything other than boot.img for kernel, copy it from base to port along with META-INF.
this also resizes images too if you have different dpis
how to use:
it says in the script so im not gonna put it here
Ill make a better post once i finish my HW
DL:
http://d-h.st/LDs
thanks to peteragent5 for the resizing thing
Click to expand...
Click to collapse
thank for release
Sent from my Nexus S using xda app-developers app
Thx, This sounds great. Hope its works great to. Will try this later.
I'lla try later thank you very much
Inviato dal mio GT-I5500 con Tapatalk 2
This sounds like a great idea, but how exactly do you use this?
I get that there are shell scripts and I know how to run those, but does the rom need to be extracted? Which script do you use for the rom itself?
A little more info would go a long way
Thanks OP
this script need more thinks..
Has anyone downloaded this and ran any of the files? It has instructions, it seems as though you may need to create some empty folders on your own as their not in the file set.
Sent from my PC36100 using Tapatalk 2
Please rename the title of this thread. It is misleading.
Testing vl report back.... has anyone else tested it......
Sent from my Xperia Neo V using xda app-developers app
How to run
how to run the script in windows>?
Not able to run the script PLZ help>>>>>>>
---------- Post added at 09:19 AM ---------- Previous post was at 09:00 AM ----------
i ran the script in cygwin but not working.......
Sturdy_99 said:
Not able to run the script PLZ help>>>>>>>
---------- Post added at 09:19 AM ---------- Previous post was at 09:00 AM ----------
i ran the script in cygwin but not working.......
Click to expand...
Click to collapse
Chmod +x it
Sent from my SGH-I747 using Tapatalk 2
not getting what u said.....i installed ubuntu now but wen i try to open the script it opens in text editor. How to open it in terminal any shortcut.
Sturdy_99 said:
not getting what u said.....i installed ubuntu now but wen i try to open the script it opens in text editor. How to open it in terminal any shortcut.
Click to expand...
Click to collapse
Look up how to run files from terminal, you don't just go around installing stuff without knowing what you're doing and hoping that something magically works. Like seriously dude, you can answer your own question.
Sent from my PG06100
Has any1 else tested it.........
Ill be testing this on my warp using an HTC evo 3d rom to port.
Just to be sure the steps requires are.
First extract compatible Rom
Second extract port Rom
Third extract port by file or whatever it's called and place extracted roms in folders.
Fourth boot the port through recovery? Or run off windows? I haven't gotten to my pc to test but im trying to clarify the steps before i get to work on it.
Sent from my N860 using Tapatalk 2
dennis8492 said:
Ill be testing this on my warp using an HTC evo 3d rom to port.
Just to be sure the steps requires are.
First extract compatible Rom
Second extract port Rom
Third extract port by file or whatever it's called and place extracted roms in folders.
Fourth boot the port through recovery? Or run off windows? I haven't gotten to my pc to test but im trying to clarify the steps before i get to work on it.
Sent from my N860 using Tapatalk 2
Click to expand...
Click to collapse
Its a Linux/cygwin shell script
Sent from my SGH-I747 using Tapatalk 2
$ /cygdrive/d/portscriptv3.sh
enter the rom u want to port's folder
D:\port
enter the rom that already works for ur device's folder
D:\base
Is the base and port devices the same DPI? [y/n]
n
starting...
mkdir: cannot create directory `backup': File exists
mv: cannot stat `Dort/system/etc/*.*': No such file or directory
mv: cannot stat `Dort/system/etc/init.d': No such file or directory
mv: cannot stat `Dort/system/etc/permissions': No such file or directory
mv: cannot stat `Dort/system/etc/license': No such file or directory
mv: cannot stat `backup/*': No such file or directory
cp: cannot stat `D:base/boot.img': No such file or directory
cp: cannot stat `D:base/boot.img': No such file or directory
cp: cannot stat `D:base/system/cameradata': No such file or directory
cp: cannot stat `D:base/system/tts': No such file or directory
cp: cannot stat `D:base/system/usr': No such file or directory
cp: cannot stat `D:base/system/vendor': No such file or directory
cp: cannot stat `D:base/system/firmware': No such file or directory
cp: cannot stat `D:base/system/modules': No such file or directory
cp: cannot stat `D:base/system/wifi': No such file or directory
cp: cannot stat `D:base/system/etc/*': No such file or directory
cp: cannot stat `D:base/system/media/LMprec_508.emd': No such file or directory
cp: cannot stat `D:base/system/media/PFFprec_600.emd': No such file or directory
cp: cannot stat `D:base/system/build.prop': No such file or directory
cp: cannot stat `D:base/system/SW_Configuration.xml': No such file or directory
cp: cannot stat `D:base/system/csc/*': No such file or directory
cp: cannot stat `D:base/system/CSCVersion.txt': No such file or directory
If there were no major errors, your ported rom is the port rom you specified. If needed, change the mounts in port/META-INF/com/google/android/updater-script to the values in the some folder in base. Also you should change the BOOTCLASSPATH in the kernel if you are porting non-aosp roms.
This iz the error im getting........
What i did wrong.........
Related
any way to set own .jpeg or .png picture?
or change it in kernel?
Do u think this is the right place to ask questions...that too with a new thread? The boot image lies inside the kernel...and decompiling a kernel is a dev's expertise.
Sent from my Xperia neo V using XDA
get the boot.img, exract it, you'll get ramdisk. extract it too, you'll get logo.rle
convert it to png
make your changes
convert it back to rle
then place it back in ramdisk
repack boot.img
AND ITS HARD TO DO THIS ON WINDOWS, YOU NEED LINUX FOR THIS
Aarush said:
get the boot.img, exract it, you'll get ramdisk. extract it too, you'll get logo.rle
convert it to png
make your changes
convert it back to rle
then place it back in ramdisk
repack boot.img
AND ITS HARD TO DO THIS ON WINDOWS, YOU NEED LINUX FOR THIS
Click to expand...
Click to collapse
Thank you for the detailed instructions!
I try to unpack it with Cygwin but give me error
Code:
./extractboot: ./split_bootimg.pl: /usr/bin/perl: bad interpreter: Permission de nied
./extractboot: line 17: cpio: command not found
gzip: ../../boot.img-ramdisk.gz: No such file or directory
Because you need to install cpio
, xz for some too. The is a win exe for unpacking kernels around here some where
Sent from my Xperia Neo V using XDA
i have instal cpio and get this
Code:
$ ./extractboot boot.img
./extractboot: ./split_bootimg.pl: /usr/bin/perl: bad interpreter: Permission de nied
gzip: ../../boot.img-ramdisk.gz: No such file or directory
cpio: premature end of archive
The clue there is permission denied
.. .
Sent from my Xperia Neo V using XDA
mpiekp said:
The clue there is permission denied
.. .
Sent from my Xperia Neo V using XDA
Click to expand...
Click to collapse
so where ist the problem? what i got to do?
Learn about Unix file permissions. Also read the Sony kernel dev blog or your repackaged kernel won't boot
Sent from my Xperia Neo V using XDA
Hi all!
I was bored to wait for ICS update. So, I decided to try compilinig CM7.2.
N.B: It's the first rom i compile from source! I'm doing it just for fun and learn how to compile a rom
What I've done:
-Compiled generic CM (with the instruction "lunch full-eng");
-Packed it with Supercharged Kernel;
Now i need some help to create the META-INF folder.
I noticed that with the compiled generic rom came also a folder called "utility" in which I found the update-binary.
P.s.: I hope also this thread will be helpfull for some other new devs
Please help him, I really like to see a cyano7 on U, please... Vai Vaste!!
Vaste92 said:
Hi all!
I was bored to wait for ICS update. So, I decided to try compilinig CM7.2.
N.B: It's the first rom i compile from source! I'm doing it just for fun and learn how to compile a rom
What I've done:
-Compiled generic CM (with the instruction "lunch full-eng");
-Packed it with Supercharged Kernel;
Now i need some help to create the META-INF folder.
I noticed that with the compiled generic rom came also a folder called "utility" in which I found the update-binary.
P.s.: I hope also this thread will be helpfull for some other new devs
Click to expand...
Click to collapse
Could u gimme put up ur github sources fr use?
y dont u just make ota package directly?
bharat_goku said:
Could u gimme put up ur github sources fr use?
y dont u just make ota package directly?
Click to expand...
Click to collapse
Uhm. Now i'll try to upload on github!
With make otapackage it gave me error!
Whoaaa!!!! Superb.!!! man! Anyone help him!!!
Krappabel! KeiranFTW! Brains! Come here xD
Sent from my ST25i using xda app-developers app
Vaste92 said:
Uhm. Now i'll try to upload on github!
With make otapackage it gave me error!
Click to expand...
Click to collapse
whats the error? could gimme a log ?
bharat_goku said:
whats the error? could gimme a log ?
Click to expand...
Click to collapse
Here's the log:
Code:
grep: build/target/board/generic/recovery.fstab: File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
make: *** Nessuna regola per generare l'obiettivo "otapackage". Arresto.
to translate: File o directory non esistente--> File or directory does not exist
Nessuna regola per generare l'obiettivo "otapackage". --> No rule to generate the objective "otapackage."
Vaste92 said:
Here's the log:
Code:
grep: build/target/board/generic/recovery.fstab: File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
make: *** Nessuna regola per generare l'obiettivo "otapackage". Arresto.
to translate: File o directory non esistente--> File or directory does not exist
Nessuna regola per generare l'obiettivo "otapackage". --> No rule to generate the objective "otapackage."
Click to expand...
Click to collapse
ok i dont understand **** outta this,send me ur git repo sometime i'll look into it as i get time..
Vaste92 said:
Hi all!
I was bored to wait for ICS update. So, I decided to try compilinig CM7.2.
N.B: It's the first rom i compile from source! I'm doing it just for fun and learn how to compile a rom
What I've done:
-Compiled generic CM (with the instruction "lunch full-eng");
-Packed it with Supercharged Kernel;
Now i need some help to create the META-INF folder.
I noticed that with the compiled generic rom came also a folder called "utility" in which I found the update-binary.
P.s.: I hope also this thread will be helpfull for some other new devs
Click to expand...
Click to collapse
So you didn't make configuration for the phone, just build the generic CM?
bharat_goku said:
ok i dont understand **** outta this,send me ur git repo sometime i'll look into it as i get time..
Click to expand...
Click to collapse
I didn't menaged to sync all the work with git.
By the way, I managed to install the .zip file. But, obviusly, the device do not boot.
For all who wan't to see my work I've uploaded the .zip file in Google drive, so just PM me and I'll send the link
Vaste92 said:
I didn't menaged to sync all the work with git.
By the way, I managed to install the .zip file. But, obviusly, the device do not boot.
For all who wan't to see my work I've uploaded the .zip file in Google drive, so just PM me and I'll send the link
Click to expand...
Click to collapse
Vaste, let me understand, you took zImage and system, you merged them in a zip and you flashed it??? Of course so it doesn't boot.
But have you got the META-INF folder or have you only got update binary??
If you havn't got META-INF you can download this.
Now we need a Dev or a Cook that take a look of system and zImage and let we now if they're OK; then he has to take updater script and with Notepad++ write the Updater script...
I don't think that it's so hard... Please.
I'm trying to make an Updater script but I never made one, so.....
And anyway I can't now if there is some thing wrong in the rom....
Vitophone said:
Vaste, let me understand, you took zImage and system, you merged them in a zip and you flashed it??? Of course so it doesn't boot.
But have you got the META-INF folder or have you only got update binary??
If you havn't got META-INF you can download this.
Now we need a Dev or a Cook that take a look of system and zImage and let we now if they're OK; then he has to take updater script and with Notepad++ write the Updater script...
I don't think that it's so hard... Please.
I'm trying to make an Updater script but I never made one, so.....
And anyway I can't now if there is some thing wrong in the rom....
Click to expand...
Click to collapse
You can use Rom kitchen (dxin somthng)
Sent from my ST25i using xda premium
For What???
Vaste Alredy made the updater script so now the rom can be installed but it doesn't boot.
I think that the problem is in to system folder, I took a look to the rom and META-INF is OK, kernel's OK to I think (he took Xperia supercharged and with Championswinner kernel kitchen he made from elf a boot.img and then he renamed it to zImage), so the problem is in system folder...
Please, jitin02 take a look, I can give you the link of the zip if vaste is offline...
If you have zImage from supercharged kernel share it!
Inviato dall'unica vera custom rom per xperia U,la supercharged!
Vitophone said:
For What???
Vaste Alredy made the updater script so now the rom can be installed but it doesn't boot.
I think that the problem is in to system folder, I took a look to the rom and META-INF is OK, kernel's OK to I think (he took Xperia supercharged and with Championswinner kernel kitchen he made from elf a boot.img and then he renamed it to zImage), so the problem is in system folder...
Please, jitin02 take a look, I can give you the link of the zip if vaste is offline...
Click to expand...
Click to collapse
I think your missing a major point here,
Its not a CM based kernel :\
Anyway pm me the link..
I will pm you the link so Gek can get the kernel and you can help us, really
Thankyou
Sent from my ST25i using xda app-developers app
Vitophone said:
For What???
Vaste Alredy made the updater script so now the rom can be installed but it doesn't boot.
I think that the problem is in to system folder, I took a look to the rom and META-INF is OK, kernel's OK to I think (he took Xperia supercharged and with Championswinner kernel kitchen he made from elf a boot.img and then he renamed it to zImage), so the problem is in system folder...
Please, jitin02 take a look, I can give you the link of the zip if vaste is offline...
Click to expand...
Click to collapse
Yes, you are right, the problem is in "the system folder". He built the generic CM, not a configured for this phone. It never will boot so.
Sent from my ST25i using xda premium
Vitophone said:
I will pm you the link so Gek can get the kernel and you can help us, really
Thankyou
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
Please share link?
GEKTHEBOSS said:
If you have zImage from supercharged kernel share it!
Inviato dall'unica vera custom rom per xperia U,la supercharged!
Click to expand...
Click to collapse
please share also to me.
thx
Hello,
I'm trying to unzip an apk using the device shell. I need to see the package name of the app contained in the apk. I tried using unzip -l but I just get output that says "zip flags 1 and 8 not supported". How can I unzip an apk? For that matter, am I using the right tool for this job? I just want to view the manifest of the apk, really. I have busybox.
[To moderators] Please delete this post. There's a typo in my user name. I've signed in using the correct account below.
Hello,
I'm trying to unzip an apk using the device shell. I need to see the package name of the app contained in the apk. I tried using unzip -l but I just get output that says "zip flags 1 and 8 not supported". How can I unzip an apk? For that matter, am I using the right tool for this job? I just want to view the manifest of the apk, really. I have busybox.
MutantPatypus said:
Hello,
[To moderators] Please delete this post. There's a typo in my user name. I've signed in using the correct account below.
Click to expand...
Click to collapse
You could contact admin for changing your username instead of creating another account because of typo.
However, contact the admin and deactivate your previous account
its so easy with any app like root browser, es file explorer, etc. i use both root browser by jrummy and es file explorer.
there's no use of zipping the apk just to see the manifest file...
the manifest file is obfuscated upon the building the apk... so if you try to extract it, you can only see a different, non-human readable format of it...
however you can use aapt to peek what's inside the manifest file in a readable format... try downloading the aapt binary...
I have multiple errors like this
frameworks/av/media/libstagefright/ACodec.cpp:39:24: fatal error: QCMetaData.h: No such file or directory
this file located in hardware/qcom/media/mm-core/inc/ directory
how i can add this directory to include_paths?
if it is to a linux computer, you would add this to your /home/user/.bashrc file <- notice the dot.
export PATH=$PATH:/path/to/whatever/file/you/need
you can add this line below the same line, if you have one like this already.
to test, youc an also type it on the CLI, if it works, and you needed it permanent, then add it to the file mentioned.
no. it not about PATH variable
on UT compilation i have multiple errors like this
frameworks/av/media/libstagefright/ACodec.cpp:39:24: fatal error: QCMetaData.h: No such file or directory
becouce including header file QCMetaData.h locating in hardware/qcom/media/mm-core/inc/ directory that was not in <<includes_directories>>
how i can add this includes directory to each project which include files from it?
i dont want to catch all dependencies. how get it automatics?
ah I see. that's beyond my sys admin knowledge. someone with programming (gcc) skills can help you. Sorry
Hi Maybe this can help http://stackoverflow.com/questions/...odec-cpp-in-android-sources-in-libstagefright
gazhead said:
Hi Maybe this can help http://stackoverflow.com/questions/...odec-cpp-in-android-sources-in-libstagefright
Click to expand...
Click to collapse
nope
Extracting:
1. Download this package: https://tusfiles.net/oaiw9ze20tbl
2. Extract to a folder and chmod 777 -r /path/to/the/folder
3. cd (change directory) to that folder
4. Run prereq.sh
5. Place system.transfer.list and system.new.dat into the folder
6. Open extractor.sh using a text edit program
7. Find the line containing chown command, replace yash:yash with yourusername:yourusername
8. Run extractor.sh
9. Modify contents found in output folder
Rebuilding:
1. Do above first and then run compress.sh
2. Find the rebuilt system.new.dat and system.transfer.list in sdat folder
Making it into a ROM:
1. Do above first
2. Find a zip ROM for OnePlus 2 that contains system.transfer.list and system.new.dat
3. Replace it with your rebuilt ones from above mentioned steps
4. Voila! ROM ready!
NOTE:
The package contains OxygenOS SELinux file contexts in progs subfolder...
So, to modify CM ROMs you need to get file_contexts file from the zip of the ROM and replace the one found in progs subfolder
Credits:
@xpirt
Please mention
Two questions; Is this a rom kitchen like tool for OxygenOS? Are there any libs or binaries or other dependencies?
I'm a bit busy, but I'll take it for a spin when I can.
Oh one last thing, is there a repo for this?
Ta,
ALQI
Sent from me mobile.
Nice guide
alquimista said:
Two questions; Is this a rom kitchen like tool for OxygenOS? Are there any libs or binaries or other dependencies?
I'm a bit busy, but I'll take it for a spin when I can.
Oh one last thing, is there a repo for this?
Ta,
ALQI
Sent from me mobile.
Click to expand...
Click to collapse
The dsixda kitchen had much more functions then this but you may cknsidet it as a temporary lollipop kitchen with not much extra functionality..
This was like a automation script for me and was a quick one so repo wasn't needed
I have used this script on Ubuntu 64bit and the only extra dependency apart from those included in package are installed by prereq.sh
Btw this is not just for oxygen os it can also be used for any cm or cm based rom here but.do read the note then
Yash98 said:
Extracting:
1. Download this package: https://tusfiles.net/oaiw9ze20tbl
2. Extract to a folder and chmod 777 -r /path/to/the/folder
3. cd (change directory) to that folder
4. Run prereq.sh
5. Place system.transfer.list and system.new.dat into the folder
6. Open extractor.sh using a text edit program
7. Find the line containing chown command, replace yash:yash with yourusername:yourusername
8. Run extractor.sh
9. Modify contents found in output folder
Rebuilding:
1. Do above first and then run compress.sh
2. Find the rebuilt system.new.dat and system.transfer.list in sdat folder
Making it into a ROM:
1. Do above first
2. Find a zip ROM for OnePlus 2 that contains system.transfer.list and system.new.dat
3. Replace it with your rebuilt ones from above mentioned steps
4. Voila! ROM ready!
Click to expand...
Click to collapse
So does this allow you to make ROM's for the OP2 from ROM's based on other devices, or what? Sorry if I'm sort of a noob, I just don't understand what is being done.
Thanks!
Me1256 said:
So does this allow you to make ROM's for the OP2 from ROM's based on other devices, or what? Sorry if I'm sort of a noob, I just don't understand what is being done.
Thanks!
Click to expand...
Click to collapse
You can make ROMs from prebuilt ROMs like OxygenOS or any other built ROM like Exodus, CM12, etc.
Basically modify ROMs without rebuilding from source (which takes a lot of time!)
Sir I downloaded your tool and followed ur guide....But after I run extract.sh there is no files/folders in output folder.Plz reply thankz in advancw
Thank you. I really wanted to extract .dat file..
Sent from my ONE A2003 using Tapatalk
This is a great tool but I wanted to know how to edit the system folder in ubuntu. Like using chmod and chown to pre-root and uninstall some other apps. Can somebody please direct me in that direction.
I go test...