[Q]Sort of copy pasting operating system - Android Q&A, Help & Troubleshooting

Is it possible to backup/save the drivers and other sensors lib files so that when a new OS is flashed, the drivers/libs on that OS can be replaced by the one you've backed up so that you can get your sensors/drivers working just on a new OS?
I'm thinking of porting a fast gingerbread rom to I9001 (yes we haven't got a single talented dev so that i'm giving it a try) but i was confused about this ¨!
Thanks in advance !

lol why do i have to bump my questions everytime...are they too hard to answer? or is xda too lazy to answer a noob question?

I have been playing with Rom Kitchen, you can port the OS off of other similar phones.And uses you currant OS drivers etc. But have to have Mac or Linux.

shad0wboss said:
Is it possible to backup/save the drivers and other sensors lib files so that when a new OS is flashed, the drivers/libs on that OS can be replaced by the one you've backed up so that you can get your sensors/drivers working just on a new OS?
I'm thinking of porting a fast gingerbread rom to I9001 (yes we haven't got a single talented dev so that i'm giving it a try) but i was confused about this ¨!
Thanks in advance !
Click to expand...
Click to collapse
Yes it is possible (but they have to correspond with with the type of rom). See here: http://forum.xda-developers.com/showthread.php?t=1222746 .

Related

[Q] Is HD2 Rom Dual booting possible?

I just read in the XDA Portal that someone found a way to dual boot between two different Android Roms on one phone and ,well...i was wondering if this is possible with Windows. i have Miri N Dinik's Rom right now but say i wanted to try out Energy's Rom too...but keep my previous Rom. Is that doable or is there something special in Android phones that makes it possible?
fusion06 said:
I just read in the XDA Portal that someone found a way to dual boot between two different Android Roms on one phone and ,well...i was wondering if this is possible with Windows. i have Miri N Dinik's Rom right now but say i wanted to try out Energy's Rom too...but keep my previous Rom. Is that doable or is there something special in Android phones that makes it possible?
Click to expand...
Click to collapse
Thread moved to Q&A
To answer your question no its not possible to dual boot between 2 WinMo Roms. Android runs of partitions so you can install an Android Rom on different partitions and then select which partition to boot from. WinMo doesnt work like that.
Mark.
oooohhh o.k. thanks ! i need to hurry up and take these IT classes to further my computer and systems knowledge. January can't come soon enough. iv'e learned so much from just this site alone though..i think i'll have a bit of a head start when i do start class.
fusion06 said:
oooohhh o.k. thanks ! i need to hurry up and take these IT classes to further my computer and systems knowledge. January can't come soon enough. iv'e learned so much from just this site alone though..i think i'll have a bit of a head start when i do start class.
Click to expand...
Click to collapse
Just use xda as your reference guide and you will do fine lol.
Mark.

[Q] Building ROM for Samsung Galaxy 5 (I5500)

Hey everyone,
Recently I installed the latest froyo_2.2 firmware for my samsung I5500..and tried to tweak it and started enjoyin it... So I decided to build Custom ROMS for this phone...I got a lot of info from cyanogen and from other posts...Now what I want to ask is that I have the source code for this phone, the android sdk(with gingerbread) and ellipse(with again the SDK and AVD), I want to compile the source code and do it all in windows based machine.. can i do it?? help would be greatly appreciated!! please!!
chaitanyakaul said:
Hey everyone,
Recently I installed the latest froyo_2.2 firmware for my samsung I5500..and tried to tweak it and started enjoyin it... So I decided to build Custom ROMS for this phone...I got a lot of info from cyanogen and from other posts...Now what I want to ask is that I have the source code for this phone, the android sdk(with gingerbread) and ellipse(with again the SDK and AVD), I want to compile the source code and do it all in windows based machine.. can i do it?? help would be greatly appreciated!! please!!
Click to expand...
Click to collapse
Haven't tried it, but all tutorials on the internet about compiling android are for linux. Probably because android is a linux based operation system. I don't think it's possible to compile on windows
Install linux or use the live CD...
well I guess I'll have to install Ubuntu then
Thanks... and any more suggestions would be greatly appreciated..
Where I can find the tutorial for compiling my rom?
hi
i have flashed my Samsung galaxy5 gt-i5503 to samung galaxy i5500L using firmware for usa ...samfirmware link....
now i have a perfectly working Froyo2.2 in my phone...
pls help me out for the best settings on cuptuner app....
alistassio said:
Where I can find the tutorial for compiling my rom?
Click to expand...
Click to collapse
Sorry, it's not quite as simple as that. First set up your Linux install, and all necessary tools (check the Android developers site), and then come back and ask where to begin!
any chance by making an htc sense ui custom rom for it?
Custom ROM
Can I also get the custom ROM for SG 551?
Thanks,
Disha
How to continue with built kernel
nprussell said:
Sorry, it's not quite as simple as that. First set up your Linux install, and all necessary tools (check the Android developers site), and then come back and ask where to begin!
Click to expand...
Click to collapse
nprussell,
I have installed all necessary tools, downloaded froyo from developer site, got I5500XXJPG_Froyo sources from SAMSUNG, compiled the kernel.
Now i have in path kernel/arch/arm/boot: Image, install.sh, Makefile, zImage
How to proceed?
Many thanks for any help!
thanx man real helpful

Porting htc one roms to the max?

hey guys, just wondering how difficult it would be to do this and keep the finger print scanner. i (with no android developing experience) tried following a few tuts to try and port a 4.3 rom with little success, i managed to get it to start installing in cwm then to give a permission failure or something similar so yeah just a quick question
+1
Sent from my SM-N900V using Tapatalk
hectorz321 said:
hey guys, just wondering how difficult it would be to do this and keep the finger print scanner. i (with no android developing experience) tried following a few tuts to try and port a 4.3 rom with little success, i managed to get it to start installing in cwm then to give a permission failure or something similar so yeah just a quick question
Click to expand...
Click to collapse
Permission failure? Noob here too
I am guessing the ROM you tried to port checks for the Model number of the phone before flashing. What ROM did you try to port to and if you could post the instructions here we will make this the porting thread
Given that HTC One has all the custom ROM's and kernels we need devs or someone like us who can follow instructions to start doing it. I am sure we will get help from one another and end up with custom ROM's for the MAX.
I was also thinking of doing this but just to start with i don't want to look at the fingerprint scanner and may be later we could get it working.
I am certain most people would be willing to not have a working fingerprint scanner, as a trade off for a few custom roms/kernels...
Well to start you need to make sure your Meta-Inf directory is one from the Max, you should be porting from something with the same board as well which would give you less headaches in the long run. The One would be a good starting port since they use the same boards (msm8960 Snapdragon 600) The updater script in Meta-Inf needs to be pointing to the correct device. For example and this is just an example in the beginning of the updater script which is really the instructions for flashing the rom in recovery shouldn't say something like "get prop blah blah m7vzw" the m7 being the model # should be t6vzw if you were using a Verizon device etc etc.. All mount points need to be exactly what the Max's mount points are otherwise it will never flash.. The original One mount points aren't the same as the One Max. Also the kernel from the Max is a must, plus in system/lib you need the modules as well as hardware. In system/bin you need vold, vold is device specific. In system/etc you need vold.fstab again device specific stuff. The you need the hardware directory, which is touch capacitive buttons and LED's and what not. Those may be the same as the One since they are laid out the same.. The audio should most likely be the same but you would need to remove all the Beats Audio crap from system/etc since the One Max isn't a beats device.. GSM to GSM may be an easy port, CDMA to CDMA may be a little more difficult. Although they use libril-qc-qmi-1.so I think it is, that may be a typo but that's something like what the lib path will point to, the code may be slightly different in telephony for CDMA LTE devices. That would be found in framework.jar if applicable framework2.jar..
I could most likely easily get a port done, I'm just very limited to time.. Some of the tutorials out there are very generic and would kind of work well if you have 2 very identical devices with minor changes and manufactured around the same time small example would be like the HTC Desire and the HTC Thunderbolt.. That's a pretty straight forward port with some minor audio tweaks since sound image in system/etc is different and that as well are devices that would require a RIL hack as stated above with framework.jar... That right there would be strictly smali/baksmali hacking which I have some knowledge with but by no means a master of it lol... That is unless we had source for certain things but that isn't likely by no means... If anyone is interested in getting to work I'm more then willing I just sometimes have a hectic schedule... There is more to porting then just a few quick changes if you want a clean solid daily driver port... I started to port MIUI V5 just haven't really had much of a chance to test it. I have 3 MIUI ports built all slightly altered to eventually test different hacks..
The reason I chose MIUI V5 to port is because a good deal of HTC MIUI ROMs are based heavily on Sense.. Not many of them are AOSP based anymore which to me is kind of a shame.... The Chinese must have gotten tired of so many ports popping up with a lot of broken stuff because they all use to be AOSP based and to get them ported required a ton smali hacks and now when you decompile an actual source built official chinese MIUI rom and you diff out lets say services.jar from CM and services.jar from MIUI for every line of code like cdmareceiver.smali in CM in MIUI it's i.smali then cdmareceiver$1.smali in CM in MIUI it's 23.smali.... Those aren't actual lines those are just examples but they made it damn near impossible to properly diff stuff out.. You'd literally have to go through thousands and thousands upon thousands of lines to figure out which matches what and then make the changes you feel like need to be made and then hope you didn't break something in the process.... It sucks lol...
So yeah most of the HTC devices are now MIUI converted Sense based builds and I'm hoping are a little easier to port with less changes!! But I guess we'll see?!?!
Like I said, anyone wanting to work with me I will be more then glad to lend my knowledge of Android! I need someone to get me motivated again. I really miss working on Android and building stuff porting stuff whatever.. It's just fun! Plus we desperately need some form of a custom Android really really bad.... All of us do... I mean I'm Verizon, but Sprint, the International crew, all of us....
Lets pool all of our knowledge together and do some work!!! To all reading this if you are down contact me in this thread or PM me and lets get busy!
Murrda said:
Well to start you need to make sure your Meta-Inf directory is one from the Max, you should be porting from something with the same board as well which would give you less headaches in the long run. The One would be a good starting port since they use the same boards (msm8960 Snapdragon 600) The updater script in Meta-Inf needs to be pointing to the correct device. For example and this is just an example in the beginning of the updater script which is really the instructions for flashing the rom in recovery shouldn't say something like "get prop blah blah m7vzw" the m7 being the model # should be t6vzw if you were using a Verizon device etc etc.. All mount points need to be exactly what the Max's mount points are otherwise it will never flash.. The original One mount points aren't the same as the One Max. Also the kernel from the Max is a must, plus in system/lib you need the modules as well as hardware. In system/bin you need vold, vold is device specific. In system/etc you need vold.fstab again device specific stuff. The you need the hardware directory, which is touch capacitive buttons and LED's and what not. Those may be the same as the One since they are laid out the same.. The audio should most likely be the same but you would need to remove all the Beats Audio crap from system/etc since the One Max isn't a beats device.. GSM to GSM may be an easy port, CDMA to CDMA may be a little more difficult. Although they use libril-qc-qmi-1.so I think it is, that may be a typo but that's something like what the lib path will point to, the code may be slightly different in telephony for CDMA LTE devices. That would be found in framework.jar if applicable framework2.jar..
I could most likely easily get a port done, I'm just very limited to time.. Some of the tutorials out there are very generic and would kind of work well if you have 2 very identical devices with minor changes and manufactured around the same time small example would be like the HTC Desire and the HTC Thunderbolt.. That's a pretty straight forward port with some minor audio tweaks since sound image in system/etc is different and that as well are devices that would require a RIL hack as stated above with framework.jar... That right there would be strictly smali/baksmali hacking which I have some knowledge with but by no means a master of it lol... That is unless we had source for certain things but that isn't likely by no means... If anyone is interested in getting to work I'm more then willing I just sometimes have a hectic schedule... There is more to porting then just a few quick changes if you want a clean solid daily driver port... I started to port MIUI V5 just haven't really had much of a chance to test it. I have 3 MIUI ports built all slightly altered to eventually test different hacks..
The reason I chose MIUI V5 to port is because a good deal of HTC MIUI ROMs are based heavily on Sense.. Not many of them are AOSP based anymore which to me is kind of a shame.... The Chinese must have gotten tired of so many ports popping up with a lot of broken stuff because they all use to be AOSP based and to get them ported required a ton smali hacks and now when you decompile an actual source built official chinese MIUI rom and you diff out lets say services.jar from CM and services.jar from MIUI for every line of code like cdmareceiver.smali in CM in MIUI it's i.smali then cdmareceiver$1.smali in CM in MIUI it's 23.smali.... Those aren't actual lines those are just examples but they made it damn near impossible to properly diff stuff out.. You'd literally have to go through thousands and thousands upon thousands of lines to figure out which matches what and then make the changes you feel like need to be made and then hope you didn't break something in the process.... It sucks lol...
So yeah most of the HTC devices are now MIUI converted Sense based builds and I'm hoping are a little easier to port with less changes!! But I guess we'll see?!?!
Like I said, anyone wanting to work with me I will be more then glad to lend my knowledge of Android! I need someone to get me motivated again. I really miss working on Android and building stuff porting stuff whatever.. It's just fun! Plus we desperately need some form of a custom Android really really bad.... All of us do... I mean I'm Verizon, but Sprint, the International crew, all of us....
Lets pool all of our knowledge together and do some work!!! To all reading this if you are down contact me in this thread or PM me and lets get busy!
Click to expand...
Click to collapse
this was exciting to read, best of luck
I am going to get Ubuntu installed today and then Android Kitchen here i come!
pradeepvizz said:
I am going to get Ubuntu installed today and then Android Kitchen here i come!
Click to expand...
Click to collapse
You can always use Cygwin on windows. there is a how to cook a rom tutorial in the General Android Dev forum.
DeadPhoenix said:
You can always use Cygwin on windows. there is a how to cook a rom tutorial in the General Android Dev forum.
Click to expand...
Click to collapse
Thanks, i just installed it via virtual box without disturbing my system.
Just got android kitchen up and running, on prting sides of things got further this time, into aroma installes but error 7 which suggested earlyer is to do with mount points, if anyone could happen to help with theese it would be fab ))
Ok this is good start, i am proud of us here
I have got Android Kitchen running on my Ubuntu via virtual box.
I tried to set my working folder and tried tried to import my TWRP stock ROM backup. It seems like Android kitchen will require a CWM backup and TWRP does not seems to work.
With the TWRP backup i got this error
NON-YAFFS/NON-TAR FILE FORMAT DETECTED IN ROM
Click to expand...
Click to collapse
So i have just restored stock ROM on my phone, flashed CWM and now backing up my Stock ROM to COOK ANDROID
@[email protected] did you miss this thread just kidding, I know you have got a hectic schedule.
Again i am extremely happy to see ppl starting to develop ROM's!
Thanks for your encouragement @Murrda
No problem.. I'm home from work already and I'm off for the next 3 days so I'm actually going to get back to working on some ports. Anyone need a hand with anything as far as questions or setting up Linux or a dev environment please feel free to hit me up!
pradeepvizz said:
Ok this is good start, i am proud of us here
I have got Android Kitchen running on my Ubuntu via virtual box.
I tried to set my working folder and tried tried to import my TWRP stock ROM backup. It seems like Android kitchen will require a CWM backup and TWRP does not seems to work.
With the TWRP backup i got this error
So i have just restored stock ROM on my phone, flashed CWM and now backing up my Stock ROM to COOK ANDROID
@[email protected] did you miss this thread just kidding, I know you have got a hectic schedule.
Again i am extremely happy to see ppl starting to develop ROM's!
Thanks for your encouragement @Murrda
Click to expand...
Click to collapse
Murrda said:
No problem.. I'm home from work already and I'm off for the next 3 days so I'm actually going to get back to working on some ports. Anyone need a hand with anything as far as questions or setting up Linux or a dev environment please feel free to hit me up!
Click to expand...
Click to collapse
heyy i could use some help doing this part in android kitchen. straight from android kitchens page but i can't seem to get the recovery.fstab out anyway! im on t6ul verson of the max by the way thanks
/HIDE (sorry dont know how to get this to work (forum noob here too)
Create a file under the kitchen's /tools/edify_defs folder, with the name being the same as the value of ro.product.device (found in your device's /system/build.prop file).
If the stock ROM images for your device contain the recovery.img file, extract its files from the kitchen menu: Advanced --> Tools for boot image --> Extract from boot.img/recovery.img in any folder. Then, open up its ramdisk folder, and look for /system/etc/recovery.fstab or /etc/recovery.fstab or similar FSTAB file location. Open this file to find the mount points.
See the template file in the edify_defs folder to see how to set the mount points inside the file you created. Look at the other files in that folder for examples on how to do it.
managed to flash something and get mounting things sorted ))), getting an interesting navy green screen when booting now, will let you know on further developments. its a vanilla android rom i tried insertcoin-m7-google-edition_5.0-1 to be exact
hectorz321 said:
managed to flash something and get mounting things sorted ))), getting an interesting navy green screen when booting now, will let you know on further developments. its a vanilla android rom i tried insertcoin-m7-google-edition_5.0-1 to be exact
Click to expand...
Click to collapse
Good start mate! awesome!
update, getting a boot logo now which is great but im in a bootloop and have no idea where to start, iv been looking on trying to get logcat and such running but no success yet. Any advise anyone?
hectorz321 said:
update, getting a boot logo now which is great but im in a bootloop and have no idea where to start, iv been looking on trying to get logcat and such running but no success yet. Any advise anyone?
Click to expand...
Click to collapse
Which guide are you following? i just cooked a ROM today first time. I made the stock ROM for the T6UL.
---------- Post added at 08:34 PM ---------- Previous post was at 08:34 PM ----------
ooo, Merry Christmas everyone
Yeah I've been trying to port gpe over to the max but I think I need the gpe kernel ported too.. I used the Max Sense kernel for it and I get a bootloop or frozen boot logo after install with no hope of getting a logcat. I didn't move the Max sense update-binary but don't think that would be an issue, both since Its gpe and I'm using aroma..
Sent from my HTC One using XDA Premium 4 mobile app
HolyAngel said:
Yeah I've been trying to port gpe over to the max but I think I need the gpe kernel ported too.. I used the Max Sense kernel for it and I get a bootloop or frozen boot logo after install with no hope of getting a logcat. I didn't move the Max sense update-binary but don't think that would be an issue, both since Its gpe and I'm using aroma..
Sent from my HTC One using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Got to exactly the same point as you, reading several tutorials online i came across this interesting line "To port Sense you have to unpack the boot.img of your base rom and edit the init.rc to change the bootclasspath and match it with the port one" which is what iv done but also got stuck in a bootloop, looking at the two kernels are are a few differences in them. I think that might be they key.
hectorz321 said:
Got to exactly the same point as you, reading several tutorials online i came across this interesting line "To port Sense you have to unpack the boot.img of your base rom and edit the init.rc to change the bootclasspath and match it with the port one" which is what iv done but also got stuck in a bootloop, looking at the two kernels are are a few differences in them. I think that might be they key.
Click to expand...
Click to collapse
Yeah, i know for the kernel, without being able to mess with the zimage, the sense max kernel lacks the init.environ.rc from gpe, the fstab file is different(at least file extension), and there's a few things that point to sense files or folders that don't exist on gpe. Currently there is no released source for the max yet :'( so unless someone knows how to do it manually and hasn't shared HOW to do so, I just have to wait.. Hopefully it won't be too long.
Sent from my HTC One using XDA Premium 4 mobile app

How to create a ROM?

Hi guys! I have an android kitkat 4.2.2 on my computer and it's in an .iso format. I was just wondering if you could teach me how to run that kitkat on my alcatel one touch t10? thanks guys
gmarlon7 said:
Hi guys! I have an android kitkat 4.2.2 on my computer and it's in an .iso format. I was just wondering if you could teach me how to run that kitkat on my alcatel one touch t10? thanks guys
Click to expand...
Click to collapse
iso format for android...? I don't believe there are any iso formats for android phones or tablets. Maybe a version of x86 for the PC or something perhaps. Anyway, don't think there are any options for KK for it, as without source, it would be a HUGE undertaking, even for a skilled developer, to be able to get all the drivers and stuff updated without the source code from the manufacturers. I suggest to read through this thread for info on available versions of CyanogenMod that are compatible as well as tools and files to install a custom recovery or to return to stock if needed: http://forum.xda-developers.com/showthread.php?t=2016643
hey! thanks for the reply but i already did that thing above. Anyway, I just figured out that i really can't do the thing. thanks

How does android porting work?

Hello, I'm an enthusiastic dev wondering, after endless porting attempts, and a few source-code-build attempts, how exactly does android porting work ?
I know that's a vague question but here's what I don't understand:
How all the files and libs work together in a ported ROM compared to a ROM built from source?
Why can't you port ROMs with different kernels?
If you can't then how did Cyanogen Mod phones with closed source mtk chipsets?
(I know this is off the main topic) How is a kernel updated?
I've never seen anybody ask these questions before, so please, help me and all those people on bootloop understand how to fix all those bugs.
Thanks in advance. :fingers-crossed:
Trying to figure out the same thing... especially how to know what blobs i need and what exactly each does. finally got my first build of CWM recovery working, after many tries.
fs1995 said:
Trying to figure out the same thing... especially how to know what blobs i need and what exactly each does. finally got my first build of CWM recovery working, after many tries.
Click to expand...
Click to collapse
Well me too, but it gives me a status 7 error then bricks the /system (v.6.0.3.0), but honestly, nobody has ever explained how they know what to copy or anything, and I have never seen any android dev course or smth.

Categories

Resources