Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8317623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:40:05+00:00 2026-06-08T21:40:05+00:00

I have a Galaxy S3 that is an android phone. I want to develop

  • 0

I have a Galaxy S3 that is an android phone. I want to develop a USB Device Driver for it.
So I made a simple driver that is compiled with Galaxy S3 Linux Kernel. But I can’t execute ‘insmod’ command without root permission.

Is it possible to develop a device driver for android phone?

Additionally, a driver source code is a typical character device driver sample which has open(), close(), read(), write() functions.

And an error message are:

  1. insmod: Permission denied
    (have not a root permission )

  2. insmod: invalid module format
    (have a root permission through ‘rooting’. I think that the kernel was changed because of ‘rooting’. And device driver compiled with original Galaxy S3 Linux Kernel which is released by samsung. )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:40:08+00:00Added an answer on June 8, 2026 at 9:40 pm

    Yes it IS possible to develop a device driver for any android phone as long as you have:
    – access to the linux kernel source for that particular phone.
    – have access to a root shell on the device.

    Access to the kernel source is required so that one can build a kernel-module against that particular kernel. A root shell is required to insmod the kernel-module.

    Regarding USB host support on android phones, certain phones have the USB-host support built-in to the kernel and will support the USB-host mode. But one needs to have the proper USB-cables to connect the peripherals.

    Also to overcome the error,

    insmod: invalid module format

    you might want to try the –force-vermagic flag as follows :

    insmod --force-vermagic <module.ko>
    

    As you have rightly guessed, it is in fact an error due to mismatch of version numbers between the kernel running on the device and the kernel that the module is built against.
    More details here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have android device its samsung galaxy GT-S5300 and version is 2.3.6 . I
My goal is to have an Android phone (Samsung Galaxy Nexus) communicate with a
I have written a simple Android application that uses a sqlite database which is
I have a samsung galaxy s and i have made an application that make
I have a Samsung Galaxy Tab (Android 2.2 Froyo, etc) that I am developing
I want to develop an application for Galaxy Tab and Android phones. The tab
I have successfully rooted my Samsung Galaxy Mini (android 2.2.1) and thought, that I
I've recently purchased Samsung Galaxy Android phone after using Openmoko phone for 2 years.
I have never seen this before. I have a simple custom view that has
I have a activity that I want to rotate. I use the following in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.