PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   using rhodium as an android development phone (http://forum.ppcgeeks.com/showthread.php?t=116900)

millmanorama 04-03-2010 09:45 PM

using rhodium as an android development phone
 
I can get android running on my sprint rhodium, and that is a great.

Does anyone know how/if i can get it to talk to the android sdk adb so i can develop my own apps and test them on my phone. If i am in active sync mode and connected when i boot into android , it reports that usb debugging mode is active, and the phone shows up as android adb in my device manager, but not when i run "adb devices" from the command line.

Any help would be awesome.

jafterdark 04-04-2010 09:36 AM

Re: using rhodium as an android development phone
 
1 Attachment(s)
put this file in this folder \conf\ it's been edited to make usb to work for adb devices=D>

millmanorama 04-05-2010 11:46 AM

Re: using rhodium as an android development phone
 
this worked perfectly! thanks a lot!

millmanorama 04-06-2010 07:05 PM

Re: using rhodium as an android development phone
 
I don't what jafterdark did to that file, (or how any of this porting stuff really works in detail), but just out of curiosity, anyone know why this isn't enababled/included by default?

jafterdark 04-06-2010 08:31 PM

Re: using rhodium as an android development phone
 
has to look like this :)

# custom shell commands, these commands run last
custom_shells{
#echo "Hello!!!" # example
#echo "You can create your own commands here" # example
echo 2 > /sys/devices/platform/msm_hsusb/usb_function_switch
}

suree_n 04-07-2010 07:03 AM

Re: using rhodium as an android development phone
 
Thanks.

But I understand that the SDK still cannot see the Phone's storage , right ?

suree_n 04-07-2010 01:56 PM

Re: using rhodium as an android development phone
 
Another question, jafterdar after I can adb devices, I try to replace the system fonts but the files are read only. I, then try to identify the system device i.e /dev/block/loop1 and try to remount as rw. but the flag still ro. anything wrong ?

do i have to set up anything on tp2. i only turn on usb debugging mode.

suree_n 04-07-2010 11:09 PM

Re: using rhodium as an android development phone
 
I also tried using ADB remount, but again failed.....

makkonen 04-08-2010 04:05 AM

Re: using rhodium as an android development phone
 
Hey, look, it's some questions I know the answers to.

1) Why isn't usb_function_switch set to 2 by default?
That's a hack to make it work in Windows. It makes it appear as a single device isntead of composite (so no simultaneous mass storage and adb). When it's set this way, it WON'T work under Linux (or OS X, I believe). Since the main devs tend to be running Linux, the default state is composite interface on, linux friendly. (And closer to how it should actually work. In the future, it'd be nice to have the composite interface working in Windows.)
2) Why can't /system be remounted in rw (read/write) mode?
Squashfs (the filesystem type for system.sqsh... ok, that should be obvious) is a highly compressed, low-overhead read-only file system. That makes it very good for system files, which need to be loaded often, and not take up too much space, but rarely need to be changed. Unfortunately, it means that... they can't be changed.

In order to modify the system files, you have to use a linux machine to unsquash the filesystem, make your changes, and then resquash it.

suree_n 04-08-2010 06:16 AM

Re: using rhodium as an android development phone
 
Quote:

Originally Posted by makkonen (Post 1687383)
Hey, look, it's some questions I know the answers to.

1) Why isn't usb_function_switch set to 2 by default?
That's a hack to make it work in Windows. It makes it appear as a single device isntead of composite (so no simultaneous mass storage and adb). When it's set this way, it WON'T work under Linux (or OS X, I believe). Since the main devs tend to be running Linux, the default state is composite interface on, linux friendly. (And closer to how it should actually work. In the future, it'd be nice to have the composite interface working in Windows.)
2) Why can't /system be remounted in rw (read/write) mode?
Squashfs (the filesystem type for system.sqsh... ok, that should be obvious) is a highly compressed, low-overhead read-only file system. That makes it very good for system files, which need to be loaded often, and not take up too much space, but rarely need to be changed. Unfortunately, it means that... they can't be changed.

In order to modify the system files, you have to use a linux machine to unsquash the filesystem, make your changes, and then resquash it.

Wow, you just enlightened me. For the unix newbie like me, it is just like impossible to modify it. Hope the developer guy will release the ROM kitchen soon so that I can cook it with my Thai fonts. ](*,)


All times are GMT -4. The time now is 04:55 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0