Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
G1上へSharedLibをコピーする方法について
638 views
Skip to first unread message
藤村
unread,
Jan 16, 2009, 3:40:34 AM
1/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
藤村です。いつもお世話になっております。
JNIを利用するため、SharedLibを作成したのですが、
実機(G1)へSharedLibをコピーすることができませんでした。
自分が試した方法は次になります。
1.実機とPC(Windows)をUSBで接続する。
2.コンソールにて次のコマンドを実行する。
$adb push {ローカル上のディレクトリ}/XXXX.so /system/lib
コマンドを実行すると、"Read-only file system"というエラーメッセージが出力され、ファイルをコピーすることができませんでし
た。
※"/system/lib"の権限を確認すると、書き込みの権限が与えられていませんでした。
実機にてJNIを利用するため、SharedLibを作成したのですが他にファイルをコピーする方法が分からず困っております。
解決策などありましたら、ご教授お願いします。
watanabe tomo
unread,
Jan 16, 2009, 9:30:25 AM
1/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
渡辺@幹事です
ちょうど今日このあたりを調べていました(^^;)
とはいえ,自分はまだ途中でズバリ回答ではありませんが・・・
もうすでに調査済みだったらスルーして下さい(^^ゞ
sakamotoさんと言う方が,SharedLibraryについて下記のブログで書か
れていますので,参考にしてみてはいかがでしょうか?
http://blogger.splhack.org/2009/01/android-dev-phone-1-10.html
※systemをrwでremountするようです
ではでは
藤村 さんは書きました:
WATANABE@ISB
unread,
Jan 20, 2009, 11:11:56 AM
1/20/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
ワタナベ(カタカナ)@組み込みWGです。
adb remount
でいけます(遅
WATANABE@ISB
unread,
Jan 20, 2009, 11:15:00 AM
1/20/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
うげ、確認したら、これが使えるのはemulator環境だけでした;すんません。
藤村
unread,
Jan 21, 2009, 9:28:06 PM
1/21/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
藤村です。
早速のご回答ありがとうございます!
systemディレクトリのパーミッションについてですが、教えていただいたサイトを元に
次のコマンドを実行することで変更することができました。
$adb shell
$su
$mount -o rw,remount /dev/block/mtdblock3 /system
リマウント後、"/system/lib"内を"mkdir"や"mv"で書き換えることができました。
※SDカードに"SharedLib"を入れた後、"mv"コマンドで移動させることで回避できそうです(まだ試せてません)
本当にありがとうございました!
Reply all
Reply to author
Forward
0 new messages