Related
Hey there, im a software engineering student and i'm pretty new to android development and i'm looking to port android on a custom device
I hope this is the right place to ask. Basically i was wondering if there is a driver list of the available drivers on the kernel supported by android.
Second thing, what's the basic idea of porting usb drivers? i'm looking to use a beagleboard as a base for the prototype with a usb hub. So really i need to know if the usb peripherals attached would work on the android os and what would i need to do if they are not supported.
And basic question... are the drivers in the kernel specific for android? or are they generic? and how are they exposed to the os?
Been doing a bit of research right now and I'm sorta piecing together and trying to understand how everything works
Thanks!!
You are trying to port Android to the BeagleBoard? This is already available:
http://code.google.com/p/rowboat/
I have worked with this code and successfully got it up and running on a C3 BeagleBoard, including keyboard, mouse, Ethernet and HDMI...
LOL... you mood killer!!
Hi There,
I see that the SGS2 supports OTG. Has anyone tried to use the phone with googles ADK? Based on documentation the android dev site, the requirement is that the phone has 2.3.4 loaded. Where the SGS2 supports OTG (host mode), I would be especially interested in whether the phone could work in host mode with the ADK. It appears that that based on this quote from the android dev site that the ADK will not support host mode on 2.3.4 firmware.
USB accessory and host modes are directly supported in Android 3.1 (API level 12) or newer platforms. USB accessory mode is also backported to Android 2.3.4 (API level 10) as an add-on library to support a broader range of devices.
Click to expand...
Click to collapse
But, Based on the Demo of the SGS2 here USB host mode is clearly supported in the firmware : (I could not post the you tube link, but the video title is "Samsung Galaxy S2 USB OTG demo ".
So I am looking for some clarification on how and what USB capability can be used and developed with in the android SDK using ADK.
Has anyone tried to use the SGS2 with the ADK?
hallo
i tried the OTG, it is perfect , exactly like a video demo.
i bought it from ebay 9.99€
goodluck
Sent from my GT-I9100 using Tapatalk
So do you think we could have joypad support?
Sent from my GT-I9100 using XDA Premium App
I can confirm that otg works. But I think Samsung added some framework, since all sgs2 firmwares include it. That mostly means not 2.3.4
Sent from my GT-I9100 using XDA App
tank u very nice
As the original question was about the ADK, I can say that my S2 running 2.3.3 has OTG support, but not for the ADK USB accessory mode.
I have also tried ADK on my Galaxy S and various ROMs - two leaked 2.3.4 and CM7.1 all had to have the permissions .XML and JAR fixes to even install an ADK app, but even after doing that it still wouldn't switch into USB accessory mode.
Hoping the UK Xoom 3.1 update includes accessory mode...
Hey i want also doing some test with ADK on my Samsung Galaxy S2 ... Does anyone write to Samsung Support and /or asked some Developer (Android) direct if ADK could work on S2 ? I want to develope with Microcontroller and S2 USB Host .. but without ADK Support i have to rewrite a lot of Source Code to get Controller work like USB Client on S2... and than have to write App...
if you take a look at this http://www.hardkernel.com/renewal_2011/main.php
you could find great Hardware for ADK and these information:
Controlling hardware with the Android smartphone application is another challenge for developers.
We've test our ODROID-A, ODROID-7, Samsung Galaxy-S and Galaxy-S2 Gingerbread 2.3.4 update. But only the Galaxy-S2 doesn't work with ADK open accessory library. We don't know why !!
Click to expand...
Click to collapse
hope Kernel Patch could help to get ADK working !!!!
would it be possible for someone to build this module for me ...
http://android.serverbox.ch/?p=285
its the usb to serial adapter driver for usb otg,
i dont have the ndk or sdk installed for someone with knowledge its a small job compared to hours for me
i just need the .ko
hi,
I tried getting the ADK accessory mode working on SGS2 (with mbed) for several days/weeks now without success. Must admit i'm a newbie with compiling android kernels. I tried several USB flags in the .config file, but no luck.
The .xml and .jar file in order to install an usb accessory .apk are installed on the device, that was the easy part. Never got into accessory mode, the get protocol version (mbed --> sgs2) always returns an error, so it seems that call does not get through to android (?).
I'm not up to speed with android but I avr program in assembler w avr studio and just took a look at arduino. I ordered the mega adk board and it communicates fine as a serial device over usb. The baud is 9600, 1 stop bit, 8 data bits, no parity, no flow control as is most microcontrollers. Hyperterminal works fine, visual studio .net with system.io.ports works fine for windows applications.
I am curious what android offers for serial comms over usb. There has to be something and I don't. Understand why a kernal has to be compiled vs just an application. A blue tooth shield is available also.
Hey was anyone successful in using the ADK with an SGS2? I found the following "solution" but I'm not sure if this works.
Code:
push a android.hardware.usb.accessory.xml with the content
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<feature name="android.hardware.usb.accessory" />
<library name="com.android.future.usb.accessory"
file="/system/framework/com.android.future.usb.accessory.jar" />
</permissions>
into the device's "/etc/permissions" folder.
That might a be a silly question but is there any way to do this without rooting the phone?
I would like to use USB accessory mode on my GT540 - I have an Android Open Accessory Development kit that I want to connect to the phone. I have installed the latest Swiftdroid RC4 which has Android 2.3.5 (2.3.4 is needed for accessory mode), but my phone cannot see the device. I am not sure if the problem is the phone in general, or whether the kernel version is too old. Would a newer kernel (if one is eventually ported to this phone ) solve the problem?
Are you trying via PC suit? Some roms are not compatible with it
Sent from my GT540 using XDA App
I am not trying to connect the phone to the computer, rather I want to connect the phone to other USB devices, using the new Android Open Accessory standard (new user so I can't post a link to it). The web pages say you need 2.3.4, but I cannot get it to work with the latest SwiftDroid which has 2.3.5. I think the problem may be the kernel version but I am not sure.
IntroductionYou may have seen many threads on xda about porting roms. All of them provide step by step tutorial but they do not explain everything and do not answer common questions. So i decided to post a guide and answer all questions about porting roms.
Please note that I am not a developer or an expoert porter (I should say i am a noob) but I will to explain everything as simply as possible.
What is Porting?You can think of porting as simply getting a rom, designed for another device to work on your device.
What do I need for porting roms?You need two roms. One designed for your phone called "Base rom" and another which you want to port called "Port rom"
What skills/software do I need to port rom?Porting a rom is as simple as copy and paste. If you know how to copy and paste folders then you can port a rom.
For software side, you only need an archiver for porting (eg 7-zip)
How do I choose a base rom?Usually you choose cyanogenmod as base. The version number is important for porting.
Choose CM7 if you are porting android 2.3 (gingerbread rom)
Choose CM9 if you are porting android 4.0 (Ice cream sandwich rom)
Choose CM10 if you are porting android 4.1 (Jellybean rom)
Choose CM10.1 if you are porting android 4.2 (Jellybean rom)
Can I port all roms?No you cant.
You cannot port stock roms like sense, touchwiz etc.
You can port aosp roms like aokp, paranoid etc
Can I port from any phone?No. The phone must meet some requirements for you to be able to port.
What are those requirements?Well these things should be common in your phone and the phone you are porting from
1. Both should be armv7 (very important)
2. Both should have same resolution
3. Both should have same pixel density
4. Both should be of same brand (Not required but highly recommended)
5. Both should have same cpu (again not required but recommended)
What phone is best for porting?There is no "best phone for porting". It depends upon your phone. Simply put that if your phone and port phone have all the above things common then it is probably the best phone for porting.
HOW TO PORT ROM
1. Download base rom (designed for your phone) and port rom (the rom you want to port)
2. Open them with 7-zip (no need to extract)
3. Delete app, framework, fonts and media folders in BASE rom and move the app, framework, fonts and media from PORT rom to BASE rom
4. Your rom is now ready. Boot into recovery, Wipe everything and flash the BASE rom. It should boot. If it does not boot then do the next step
5. Go into system/lib folder in both the roms and replace the libandroidruntime.so file
6. Remember the final rom is BASE rom which you should flash on the phone.
reserved
Important: Before porting any rom always ask the developer about permission. I he allows then port and if he refuse then work on another rom. Dont ask him again and again.
Hey,
Good work!
You can port roms like sense, touchwizz... see my guide
Sent from my XT890 using xda app-developers app
GalaxyUser said:
Hey,
Good work!
You can port roms like sense, touchwizz... see my guide
Sent from my XT890 using xda app-developers app
Click to expand...
Click to collapse
Well yes but they require advanced knowledge about porting and are always buggy. This faq is for absolute beginners
UPDATE: added a guide to port rom. Hope you will like it
Could I port a rom designed for Samsung Galaxy Beam GT-i8530 to my Samsung Galaxy Beam GT-i8520 (Note that the first product model ends with 30 and the other ends with 20).
They are different phones and I would like to be able to update the stock Android 2.1 on my i8520 to Android 2.3 or above, preferably with the projector app/function of the i8530.
Both phones have projectors built in, but they are a little different in specs.
can we port 4.2 rom to 4.1.2 with same resolution, cpu & processor ??
plz confirm
Maveric-Romeo said:
Could I port a rom designed for Samsung Galaxy Beam GT-i8530 to my Samsung Galaxy Beam GT-i8520 (Note that the first product model ends with 30 and the other ends with 20).
They are different phones and I would like to be able to update the stock Android 2.1 on my i8520 to Android 2.3 or above, preferably with the projector app/function of the i8530.
Both phones have projectors built in, but they are a little different in specs.
Click to expand...
Click to collapse
I doubt that you will be able to get it to load, I've ported cm7,9 and cm10( cm10 requires me to decompile framework.jar add cdma smali files recompile the framework.jar. swap out the baseband libs and edit the build.prop cm7 and cm9 are the easiest for porting as its basically copy and paste cm9 is just baseband and build.prop edits for me to get cdma working it
Sent from my R800x using xda premium
darkharbinger81 said:
I doubt that you will be able to get it to load, I've ported cm7,9 and cm10( cm10 requires me to decompile framework.jar add cdma smali files recompile the framework.jar. swap out the baseband libs and edit the build.prop cm7 and cm9 are the easiest for porting as its basically copy and paste cm9 is just baseband and build.prop edits for me to get cdma working it
Sent from my R800x using xda premium
Click to expand...
Click to collapse
Thank you. I'm completely new to this and I'm not sure I really understand porting yet.
can i port 4.1 rom to 4.0 device with same specification ?
pankycool123 said:
can we port 4.2 rom to 4.1.2 with same resolution, cpu & processor ??
plz confirm
Click to expand...
Click to collapse
vny10 said:
can i port 4.1 rom to 4.0 device with same specification ?
Click to expand...
Click to collapse
Sorry for being late but someone pm'ed me about this thats why answering.
You need the same android version for both the port and the base rom otherwise it will not boot.
grt guide!!!!
from which phone i can port roms for my karbonn a9?
Really?
You said that you can port from ARMv7 to ARMv7 only. Is it not possible to port ARMv6 to ARMv6?
Good day! im using galaxy y, is it possible to port apps and framework from stock based roms to cm7 rom through your guide?
Are there any additional steps to be followed if jumping to the next android version aka from 4.2.2 to 4.4.2 ? I am asking this because i want to port a Kitkat based rom from a similar MTK 6572 device to our own device with exactly the same specs but different android versions, they even are the same brand.
Hi, can I use touchwiz stock like base rom and port on it cm10.1 ?
Q&A for [USB OTG] [11DEC13] [PATCH] Externally Powered USB OTG
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [USB OTG] [11DEC13] [PATCH] Externally Powered USB OTG. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Paranoid Android 4.4
Hello!
first of all, thanks for your work. :good:
I would like to try the patch but I don't know which version to choose: I have a Paranoid Android 4.4
Could you help me?
Wifi Crash, Media Crash, Settings "Storage" Crash
Hey guys, I'm on PA 4.6 BETA5, when I flash the aosp or franko kernel (after going back to stock kernel before flashing the new one) my Wifi won't enable, android.something.media crashes and in the settings app, when I tap storage the app crashes...any way to solve this problem or an alternative? Thanks!
PS: I'm really sorry if this was asked before, I read the hole last 10 sites of the forum and didnt found anythings related to my problem, "just" 10 sites because I think its related to 4.4.4 and maybe PA.
Which OTG mod to download for stock 4.4.4?
Which OTG mod to download for stock 4.4.4? There are so many I can not figure out what is the correct one to use.
OTG Android Lollipop
Anything to Android 5.0? I have looking and I think that it isn't incorporate in the stock kernel
thanks
piedra96 said:
Anything to Android 5.0? I have looking and I think that it isn't incorporate in the stock kernel
thanks
---------- Post added at 11:38 AM ---------- Previous post was at 11:34 AM ----------
I have looking and I think that it isn't incorporate in the stock kernel. So, anything to Android 5.0?
thanks
Click to expand...
Click to collapse
There are custom kernels (unleased kernel series, Hells Doctor, Hellscore, ...) which supports OTG and also supports Lolipop.
Stock Lollipop
A zip file where i can make a modification to my stock kernel on the N4! I want to use the stock for a few days to test it!
pm_dsp_ra said:
There are custom kernels (unleased kernel series, Hells Doctor, Hellscore, ...) which supports OTG and also supports Lolipop.
Click to expand...
Click to collapse
mm okey! so, have you test Hells Doctor on Lollipop? I will try out it this afternoon. I'm running a 4.3 stock perfectly with the otg, but Lollipop look like so excited.
Lollipop
Is there a patch for android lollipop for OTG support? I have franco.Kernel installed.
Lollipop
Is there a patch for Lollipop? Or does the kitkat patch work on lollipop?
dangerelvis said:
Is there a patch for Lollipop? Or does the kitkat patch work on lollipop?
Click to expand...
Click to collapse
I have no idea! I have tested Hells Doctor and Hell Core kernels on my Nexus 4 running Stock Lollipop and anyone work. :crying: :crying:
Anyone tried this patch on stock Lollipop kernel? Does it work?
How does one "Simply install the zip in recovery"?
My screen is broken (just the touch; everything is still visible). I was hoping I could install this mod without being able to touch the lower half of my screen so that I could plug in a mouse so that I could copy some files off my device.
I can reboot into recovery mode, but USB debugging is *not* enabled. I've never used "adb" on this device before (I just says "offline" when I try to run it from my PC).
I have no idea how to "install a zip".
Phone is an Nexus 4, running android 4.something.
OTG on Paranoid 4.6 beta 6
Hello,
When I flash the kernel (R199) and the system load I can't turn on the wifi and every time I enter the storege settings they crash.
also tried the other versions of the kernel, no help.
please help.
Thanks,
Is the OP willing to develop the patch for lollipop too? Or is there any nice kernel with USB host support?
nexus 4 lolipop 5.0.1 and xbox wireless gamepad
Hello. I want use xbox360 wireless gamepad on my nexus 4 lolipop 5.0.1. I think first I need kernel with OTG support. What kernel I can download on 5.0.1 android? I need y-cable for receiver of xbox360. what about mouses and keyboards they also need y-cable?
What can be the problem, why OTG still doesn't work
Hey guys,
however I'm completely new to this stuff, I managed to get through every barriers, and I put Cyanogenmod 11 snapshot M12 on my Nexus 4 and after that flashed the suggested kernel and patch successfully to try out OTG. The phone works withput problem, the installations seem to be successful, therefore I tried to connect an external storage to the phone to check if OTG works on it.
For that, I used a SIMPLE OTG cable like this:
<<<LINK CANNOT BE SHOWN SINCE I AM NEW TO THE FORUM - picture is the second picture of the first post in this thread>>>
connected to an Y-cable SIMILAR to this:
<<<NO LINK AGAIN - the 3rd picture of the first post in this thread>>>
The difference from the one on the picture is that mine has a male mini USB end instead of a female normal USB end as in the picture. My cable is the cable of an external wichester otherwise.
So, I tried with this cable setup, the result was that both the phone and the connected storage received electricity from the external power source, but the storage was not detected by the phone. I had a feeling that it doesn't get enogh power, so I attached it to a USB phone charger just to be sure, but the situation remained the same: the light on the storage was green, which means it is charging, the light on the phone was also on, but the storage was not detected.
My question is if I should try with the exact same cable set that can be found in the first post of this thread on the first picture or mine also should do the job, and there should be still some software related problem?
Please also tell me if you need more information on this to answer it, however I tried to be specific.
Thank you for your help in advance.
Hello. What i can do on lolipop? There is no solution? I have a 32gb flash drive, y-otg cable, standart power adapter micro-usb-male. Rooted nexus4
Which zip I need to download?
Hi, i'm really beggining on Android stuffs, since I didnt had one until the last week, so I'm really in doubt about which one of the zip files i need to install in my system to make the OTG cable work properly.
Once I downloaded a random ziddley zip on the internet and when I installed it in recovery mode, i needed to reinstall the android system on my phone, since the phone wont boot anymore.
So, can anyone help me? I'm sharing in this post a screenshot of the Android Version screen on the settings. I've rooted my phone using the King Root app
Considering that my android version is 4.4.4, I consider that I may download one of the following:
4.4.x: 2013.12.11 1604ET: [fk r199] [fk r199-CM]
4.4.x: 2013.12.06 1445ET: [aosp r7]
But which one?
And just another noob question. Is this the right way to install the ziddley zip on my phone?
(www).addictivetips.com/mobile/how-to-install-a-rom-or-app-from-zip-file-to-android-device-from-recovery/
Sorry for the noob questions and thanks to anyone who helps, because I REALLY need the otg cable to work, so I can develop some things using the XBOX 360 cable!
Removed