On Jul 9, 2:49 am, ajay wrote:
> Now If a pin is pulled up and then PUD register is set to PULL down/PULL
> none.what is the effect.
If you set to pull neither, the voltage may change over time -
depending on leakage or load currents vs the capacitance of the pin,
traces, loads, etc. Generally y
On Friday, April 27, 2012 2:08:45 AM UTC-4, andria wrote:
>
> Maybe I'm wrong but I think they are not shared because applications run
> in different processes.
The question regarded threads rather than processes. On Linux threads are
implemented as lightweight processes, but part of what make
On Thursday, April 19, 2012 10:19:03 AM UTC-4, Pascal Wittmann wrote:
>
> Hi,
>
> I'm currently working on a security type system that enforces a
> noninterference-like property based on a static analysis of dalvik
> bytecode. In the context of this analysis I need to know if DMV
> registers are sh
On Wednesday, April 25, 2012 11:57:37 AM UTC-4, tbird20d wrote:
>
> > However what I am trying to achieve is context-aware scheduling. By
> > context I mean office, home, driving etc. So under that context to
> > pre-schedule some applications I have predefined for those contexts,
> > or give hi
On Wednesday, April 11, 2012 9:54:01 PM UTC-4, Brooke wrote:
>
> This may seem naive, but what exactly does /dev/binder do?
It's the device file for accessing a kernel driver which provides a special
inter-process communications scheme optimized for use by object-oriented
languages and where e
On Tuesday, August 30, 2011 8:49:44 PM UTC-4, Behnam wrote:
>
> I am currently moving to Android Kernel 3.0 for my development and I
> realized that adb no longer works in 3.0 kernel. I did a bit of
> digging and came across a commit that completely removes any ADB
> functionality from USB gadge
On Friday, August 26, 2011 12:55:40 PM UTC-4, Steve Modica wrote:
>
> /dev/tty is root:root
> The default user is shell:shell
>
/dev/tty is assigned mode 666 in both AOSP versions that I checked and on my
device.
So it should be rw for any user including both 'shell' and application
UID's.
Your
On Wednesday, August 24, 2011 9:55:55 AM UTC-4, Steve Modica wrote:
>
> Would a more acceptable solution for the generic case be to use port
> forwarding and non-root apps that just access that port?
> In that way, we could create simple apps to access our embedded device
> router and not requir
On Wednesday, August 24, 2011 9:55:55 AM UTC-4, Steve Modica wrote:
>
> Would a more acceptable solution for the generic case be to use port
> forwarding and non-root apps that just access that port?
> In that way, we could create simple apps to access our embedded device
> router and not requir
On Tuesday, August 23, 2011 9:56:59 AM UTC-4, Steve Modica wrote:
>
> I swear I saw apps installing that said something like "this app requires
> superuser access" (perhaps sshdroid). What are those doing?
>
They are leveraging a common aftermarket modification of Android,
specifically the addi
On Monday, August 22, 2011 5:23:33 PM UTC-4, Steve Modica wrote:
>
> I would like to use pppd to create a connection to a generic android
> device.
>
> I'd like the user to be able to enabled USB debugging, connect to my
> platform, and then use adb ppp to connect.
>
> From what I can tell, the
On Wednesday, July 27, 2011 9:03:48 PM UTC-4, William W.-Y. Liang wrote:
>
> Chris,
>
> I think Dani is asking how the module can be loaded dynamically when a
> peripheral device has been plugged in during the run time. (Assume the .ko
> files have been put in the image file.)
>
I have no idea w
On Wednesday, July 27, 2011 5:32:39 PM UTC-4, Jeff wrote:
> I would like to identify an application which is sending an SMS
> message from kernel space. Currently, we can easily catch the fact
> that an SMS is being sent. This SMS message is sent under the context
> of "/system/bin/rild". This
On Monday, July 25, 2011 3:46:59 AM UTC-4, David_lavi wrote:
>
> I have tried , to edit the file but no luck. copied the modules to
> /lib/modules/
>
Have you
1) verified that you can manually insmod the module successfully from the
command line?
2) verified that your changes to the config
On Wednesday, June 29, 2011 9:58:49 AM UTC-4, Pujan Zaverchand wrote:
> When I hooked the usb cable - in the device managers, I see the
> Profilic USB to Serial (COM6). When I open hyperterminal - During the
> tablet bootup - It shows me the data that the tablet is booting up.
> But in the w
On Saturday, July 23, 2011 6:05:17 PM UTC-4, qzy888 wrote:
I specifically tested scenario 2 on both a standard linux machine with
> a slightly new kernel (2.6.38-10) and three android phones all with
> kernel (2.6.32.9-X). The TCPMD5Unexpected counter increments
> always on the linux machin
On Friday, July 8, 2011 1:02:18 PM UTC-4, KASIRAO VELUGU wrote:
>
> My project is controlling some hardware device (like RFID kit) from
> Android Emulator which is installed in a PC... But i am not getting
> how to control the external hardware which is connected to PC from
> Android Emulator.
On Wednesday, July 13, 2011 4:03:46 PM UTC-4, Zhao Wang wrote:
So these lead me into suspecting that whether my application has the
> true root permission as I do in the shell. Even if I use an exec("su")
> beforehand and the process's return shows that it succeeded getting
> super user, I stil
This is not a kernel topic either. You need to modify the android userspace
platform, as you've repeatedly been told in your other threads.
On Wednesday, May 18, 2011 3:31:58 AM UTC-4, souissi haythem wrote:
>
> no it doesn't work because activity was onStop().
>
> to make it more clear, please
On Tuesday, May 10, 2011 3:01:28 AM UTC-4, Gopi wrote:
>
>
> I am developing an android device administration system. I need to
> create a process that starts along with the OS and connect to a
> server port from where the device will be monitored. so please guide
> me in creating a process
On Apr 11, 2:05 pm, mike digioia wrote:
> I have created another version of i2cdetect and pushed them onto the
> /system/bin directory. The file has the correct permissions but does not run
> without errors.
And what would those be?
> Do you do any kernel development on phone devices without an
Try 'adb dmesg' to grab your recent kernel messages, or open an adb
shell and do much of what you can on a normal linux.
It is possible to build native command line tools, adb push them, and
execute them but it will require some (a)buse of the ndk toolchain and
pushing them to a location where the
Depending on the transfer function of the audio output system, it may
be possible to simply shove moderate rate non-return-zero encoded data
through it by delivering PCM samples to the audio driver, and recover
it with an appropriate receiver circuit on the other side.
What is certainly possible i
> grep "open_binder", "/dev/ashmem" in the android source code . This will
> provide you clue on how android utilizes the drivers.
While binder is a kernel driver, it's used primarily for communication
between userspace components, not between the userspace components and
functionality in the kern
On Jan 28, 5:08 pm, parth shah wrote:
> Most of the time they use u-boot as a reference and then customize the
> u-boot to make their proprietary BL.
That wouldn't exactly be legal, given that u-boot is GPL.
They could probably make a work-a-like (for example, Android's
"Toolbox" is similar in
On Jan 28, 4:43 pm, Tim Bird wrote:
> >>> 5. Keeping the above point in mind, is it possible to use an open
> >>> source bootloader like LK or UBoot on an unlocked device?
>
> I don't know. It depends on how the device is unlocked.
> If the phone manufacturer put the initial bootloader in ROM,
>
al or website where i can find this
> detail?
>
> Thanks,
> Parth
>
> On Thu, Jan 27, 2011 at 9:53 PM, Chris Stratton wrote:
> > There are tons of different ways you could potentially do this and
> > make it work, several of which are used for different features
> >
There are tons of different ways you could potentially do this and
make it work, several of which are used for different features
already. The challenge is more that if you hope to get the result of
your project through google CTS testing to become a google experience
device, you'll have to find a
And there are no acceptable generic methods for arbitrary purposes?
On Jan 28, 12:15 am, Greg KH wrote:
> On Thu, Jan 27, 2011 at 9:01 PM, Chris Stratton wrote:
> > He clearly stated his need, which was to transfer an array of data
> > into the driver.
>
> How to do thi
He clearly stated his need, which was to transfer an array of data
into the driver.
On Jan 27, 9:38 pm, Greg KH wrote:
> On Thu, Jan 27, 2011 at 5:10 PM, jon.schell wrote:
> > The data is not static. Yes, I know there are examples, I would like
> > to see one of them.
>
> What is wrong with all
On Jan 26, 12:43 pm, Disconnect wrote:
> That aside, you missed his subtle change of subject - the original author
> was talking about modules external to the kernel (presumably not derived
> from it) and therefor not counted as "kernel code". He shifted the topic to
> "kernel code" (which is cov
Yes and no. You can write the gui front end within the SDK. But
there is no mechanism to achieve privilege escalation of the process
running the dalvik virtual machine running SDK code. So you will need
a privileged back end that runs as a separate process, or a service
added to the platform, or
On Jan 21, 2:10 pm, Greg KH wrote:
> All kernel code must be released under the GPL, so there's not really
> a "if I use this function or not" type thing going on, sorry.
untrue - see for example binary-only video driver modules
--
unsubscribe: android-kernel+unsubscr...@googlegroups.com
websi
On Jan 25, 8:27 pm, "jon.schell" wrote:
> That is the whole of the problem. Then as background, I said that I
> already know how to copy a device driver, as I used an LED driver as a
> template and used that to interface with the app, but that it's
> limited to one byte with no context. I could
On Jan 17, 12:35 pm, ajay wrote:
> thanks Chris,
> getting to the point
> I was trying to write a program which uses the framework library
> libharware_legacy.so used for
> vibration.
You aren't supposed to do that. Go through the public interface to
the vibrator from java
> we cant do the same
I think you mean not possible to chmod the file on a phone which is
not rooted.
And the answer is that you cannot solve this problem on a secured
device.
Nor can you load custom kernel drivers on a secured device to begin
with.
If you are building this into a release which user's won't have root
x27;s USB ports so you can test drivers against
hardware.
On Jan 15, 10:15 am, Chris Stratton wrote:
> While noble, that sounds like an ambitious project at a time when most
> arm distributions of android aren't AFAIK shipping with an enabled USB
> host mode, or a way for users to g
While noble, that sounds like an ambitious project at a time when most
arm distributions of android aren't AFAIK shipping with an enabled USB
host mode, or a way for users to gain permission to load kernel
modules.
To really test your drivers it may be necessary to find hardware or
make massive mo
On Jan 4, 9:06 pm, Srikant wrote:
> I agree with you, if the requirement is porting to a new h/w platform.
>
> But the requirement here is to just porting to a new Linux Kernel
> version, hence it may not be required to do assembly level debugging.
I'm not sure that it isn't quite comparable to p
To run something like virtualbox under x86 android, you are going to
need to learn a lot about the differences between android's runtime
libraries and a typical linux's, to figure out how to get them both
accessible on the same machine without interference, and to figure out
how to run and configur
On Dec 24 2010, 9:10 am, vikas pachisia
wrote:
> 1. Does the linux kernel on hardware support loadable modules ? If not
> what is the way around it ?
Yes, it has for over 10 years, since way before anyone dreamed up
android. And I think many android kernels are built with this
enabled, though t
On Jan 3, 1:17 pm, Aditya wrote:
> I was just trying to run multiple operating systems on android which would
> be on my laptop so it would have the necessary room in main memory.
> Currently i have an cheapo dell laptop running ubuntu... and i have a
> Virtual machine running Windows xp for some
> Instead of this, you can enable Kernel Low Level Debugging options in
> Kernel Configuration for the new Kernel, so that you can get initial
> kernel messages until UART driver is initialized.
If you survive far enough into the boot that any generic parts of the
kernel are running. I was thinkin
On Jan 3, 5:53 am, Earlence wrote:
> a starting point?
As I said, I would first work on getting hardware and low level
drivers so you have a serial (not USB) messages output from very early
in the kernel boot process.
Then install a kernel with kexec enabled. Then try booting another
kernel fro
I should be possible to set up, but I didn't get it to work in the
brief time I spent trying. And it's likely going to require running a
patched kernel to start.
If you want to work on it, I'd highly recommend first getting a
working serial output for kernel messages, both hardware wise on your
d
On Dec 20, 2:58 pm, Earlence wrote:
> However, with the recent introduction of the ability to record audio
> from native code, there should be a permission check for it
> (android.permission.RECORD_AUDIO)
> Is it a similar patch like the internet check.?
That would depend on how "native" audio r
For which permission? There are a variety of different ways things
are handled.
For example, access to a hardware device is often protected by the
unix permissions of the device file and filesystems/mounts.
Network permission is done with a very short patch to add a check for
the hardcoded andro
.
So it's really a question if you want android apps to interact at
device file level, or with a wrapping service.
On Dec 14, 12:15 pm, Chris Stratton wrote:
> Assuming your device driver is interacted with via a device file, I
> think the cleanest of currently in-use mechanisms is
Assuming your device driver is interacted with via a device file, I
think the cleanest of currently in-use mechanisms is to create a unix
group for your capability and set the device file to be owned by root
but with that as the group and as appropriate read or read/write
permissions to the group.
On Dec 2, 9:41 am, amit wrote:
> 3. I have downloaded Android-Froyo repositories and compiled it for
> ARM-V7. I am using it with a customised kernel that i have
> compiled(based on android 2.6.29-golfish android kernel). When I run
> this setup on emulator, the emulator GUI doesnot comes up. Wha
You should go somewhere with a better connection and do the git
operations (or pay someone with a better connection to do it for you)
and create a snapshot on a DVD Rom or removable hard drive or flash
stick. It's going to be big. There's an option to git that tells it
to only fetch the git objec
On Nov 19, 10:38 am, Pierre-François Bonnefoi
wrote:
> I'm struggling to compile a new kernel with support of USB bluetooth.
Normally you would approach this by first making sure you can rebuild
the kernel already on the device using the existing configuration file
so that it works. This can be
machine, right? How the
> java virtual machine is lunched by the android modified linux kernel?
>
> Thanks you guys
>
> Wilson
>
> On Fri, Nov 5, 2010 at 12:16 AM, Chris Stratton wrote:
> > I think I heard they stopped including the kernel in the default
> > dow
Don't know what this is, but I'd be curious to know:
1) What is the address family and protocol of these connections?
2) Are the destination addresses fairly consistent over time, or do
they jump around randomly?
(ie, are you sure these are valid and not just initialized randomness
resulting fro
I think I heard they stopped including the kernel in the default
download, since it's huge and doesn't necessarily need to be rebuilt
if you are just working on the userspace parts of the platform. Just
follow the directions for git'ing a single project to get the
appropriate kernel for your devic
You would need to make sure you have a kernel source that is
compatible with your specific phone (may need to get that from HTC
rather than from Google's AOSP), and have configured it right.
You may be able to find a config.gz on the phone, perhaps under /proc
Also, the phone probably wants not a
Find one of the many online guides to writing a simple linux device
driver.
-or-
Find a driver that has similar structure to one you are interested in
working on and copy and rename it, adapting to fulfill your function
instead of the original. Typically this will involve a few .c and
perhaps .h
I think the community at xda-developers.com would definitely be
interested in android support for htc phones that shipped with windows
mobile.
> I work with the htc-linux team on android/kernel ports to phones
> that originally ran different version of Windows Mobile. I am
> currently working
On Sep 24, 2:45 pm, Tim Bird wrote:
>On 09/23/2010 07:42 PM, Adam wrote:
> > How can I compile a small program, that uses __NR_helloworld, using
> > cross compiler against the new kernel image that i created ?
> > arm-none-linux-gnueabi-gcc -static -o hello hello.c is giving
> > compilation error
/proc/[procid]/fd/ will be full of symlinks to the target files or
devices, you could search that
Or you could try to figure out where android implements the "kill
anything with an open handle on the sdcard when it gets unmounted" for
an example, though it may be done in kernel rather than user co
init.rc is in the ramdisk image, a disposable copy of which becomes
the root filesystem onto which /system, /data, etc are mounted. You
have to learn how to modify that (sequence of cpio commands one can
never remember) and repackage it with the kernel. Rebuilding the whole
android is likely wasti
d init language. is
> it possible ?
>
> Regards,
> Vishnu
>
> On Mon, Sep 20, 2010 at 10:30 PM, archieval wrote:
>
>
>
>
>
> > Hi Chris,
>
> > Where do you place exec? on boot trigger? Because it hasn't worked for
> > me.
>
> > On
Try using symlink command instead of ln, there may already be examples
in your init.rc
If /system is mounted by the time you want to do it you could also try
an exec on /system/bin/ln or /system/bin/toolbox with ln as the first
argument.
But probably better to use init's built in command.
On Sep
DRAM
> * 1 MB of synchronous SRAM
> * 16 MB of Intel P30/P33 flash
>
> On Sep 6, 4:18 am, Chris Stratton wrote:
>
>
>
> > Generally, figure out your first stage bootloader - if it's oem or u-
> > boot or whatever. Get it working with serial interface
Generally, figure out your first stage bootloader - if it's oem or u-
boot or whatever. Get it working with serial interface so you can
talk to it from a terminal.
Then put what you learned about the serial hardware into the kernel's
early serial driver so you can see how far you are getting durin
I spent some time looking into using kexec to have one kernel load a
replacement with the idea that the recovery menu could have options
added but didn't get it working. Having an adapter for the debug
serial port at least on htc's phones would be useful to get output
while figuring out where the
; I have a Radio device which is supplied the power via battery.
> does it need another power source?
>
> Best Regards.
>
> Hu haiqing
>
> On 8月22日, 上午3时31分, Chris Stratton wrote:
>
>
>
> > While the usb net and usb host drivers are likely available in k
While the usb net and usb host drivers are likely available in kernel
source, its worth pointing out that they aren't shipped in most
phones, so a new kernel (probably not just module) will need to be
compiled. Something will likely also be needed in sub-android linux-
level userspace to set it up
You probably need to be root, which ordinary android apps aren't
On Aug 19, 3:30 pm, potassium wrote:
> CONFIG_MODULES is enabled.
>
> If both CONFIG_NETFILTER and CONFIG_MODULES are enabled what is it
> that is disabled that needs to be enabled?
>
> On Aug 19, 11:16 am, Danke Xie wrote:
>
>
>
>
You really want to be looking at generic linux kernel hacking guides as
these arent really android specific questions.
You might want to research how the dmesg command works, too.
On Mar 23, 2010 11:38 PM, "perumal316" wrote:
Hi,
I have come up with a kernel module doing monitoring of system c
Maybe the boot.img with all your config options was too big for the flash
partition, but could be fastbooted from ram?
On Mar 23, 2010 1:16 PM, "Ricardo Silva" wrote:
The problem was a kernel configuration. I reset the .config file and
reconfigure again (with less options). Now is working ok.
I
I dont think the usb drivers are complete enough to be unloadable. Andrew
de Quincey was doing some preliminary work in that area to permit switching
to usb host mode, also someone observed that the samsung galaxy msm 7201a
usb drivers seem more mature than the parent android ones for the same chi
You have to disable the safety before shooting yourself in the foot.
As this has nothing to do with the kernel it doesnt belong on this
list.
Giovanni Pannaconi wrote:
> I'm a newbie and I try to execute this command "rm -rf" with the root
> privileges in root path.
>
> - I try it on the emulator
It might be a current estimate, but since it was reported to be
nonzero only with external power it sounds more like charge current
than drain. Would be interesting if it turns out different with the
wall charger vs. usb.
Android being open source Chintan should be able to track down the
source o
It sounds like this device might be based around a usb serial converter.
Your best bet is to figure out how to get it to work on an ordinary linux
box, then port those drivers to a rooted android dwvice with the usb host
patches.
On Mar 8, 2010 4:15 PM, "Greg KH" wrote:
On Mon, Mar 8, 2010 at 1
If they are really out of ideas they could use the MAC from whatever
wireless/bluetooth/ethernet they have on the device as part of the unit
unique serial number.
On Feb 25, 2010 10:41 PM, "Mike Lockwood" wrote:
In the android devices I have worked on, the serial number is
programmed into flash.
Edit & regenerate the ramdisk once to make it launch a shell script off of
/system after that is mounted, then anytime you want to change your add ons
edit the script... including to do nothing if that becomes your wish at some
point.
On Feb 23, 2010 2:38 AM, "Santosh Kadam" wrote:
Hi -
Is ther
Has anyone been able to get kexec to work by enabling that option in a
recent android kernel for the MSM7201a phones?
I'm playing with a 2.6.29 tree, and when I try it the screen goes
blank without the kernels splashscreen ever appearing then eventually
restarts from the carrier power on splash sc
On Feb 18, 2:39 pm, Porting beginner
wrote:
> Hi,
>
> I am trying from few days but don't get any information related to issue as
> below.
>
> Which KEYCODE to send to input dev ( /dev/input/event2 here ) on headset
> button press event from my
> headset driver so can answer / hang-up call ?
Ple
You cannot access kernel functions from userspace (jni, etc) unless there
exists a userspace interface in the kernel, such as a device driver
exporting a device file, proc file, etc. If there does not already exist
one you would need to write and load a kernel module, which requires root
permissio
The switching modules path may prove productive for our purposes, but I
think actual otg drivers dont do this, as theres a state machine that drives
mode changing automatically, so they keep both drivers resident and
enable/disable them.
The more I look into actual otg however, I'm less intetested
On Feb 15, 8:56 am, Olivier Perron wrote:
> The patch applies cleanly but there must be something wicked at
> some point: once I enable "USB Host" I simply can't find any "EHCI/
> MSM720" HCD option...
You need to disable usb gadget or usb function,
then enable EHCI HCD (USB 2.0) support
the
Would it be possible to make a running kernel for an msm7201 phone
chain load and startup a test kernel? This would be fairly useless on
a phone that can fastboot, but a number of otherwise rooted phones
cant do that, making flash & crash the only current testing option. I
started looking through
Andrew,
I've tried patching the cyanogen 2.6.29.6-cm42 kernel with your usb
host code for basically the same finds root hub and nothing else
result on a magic32b that Jun Sun posted from a g1.
Im using a usb hard drive's Y cable and a usb A to mini adapter; I
think this should be good as the phon
On Feb 9, 3:16 pm, Andrew de Quincey wrote:
> Hi, here's my now working patch - I've still a bit of work to do on it
>
> ehci-msm7201-v2.patch
I have just gotten this working on a tmo mytouch sapphire 32B with a
cyanogen 2.6.29 kernel patched with a modification of Andrew's code.
This verifies
85 matches
Mail list logo