usbmuxd icon indicating copy to clipboard operation
usbmuxd copied to clipboard

Porting to Android

Open oct-test opened this issue 9 years ago • 15 comments

What are the steps to port this library to Android using NDK?

oct-test avatar Mar 30 '16 08:03 oct-test

+1

nickplee avatar May 02 '16 20:05 nickplee

Bump

Tdogb avatar Aug 23 '16 20:08 Tdogb

I accomplished this here by building my own AOSP rom with usbmuxd integrated as a package. Worked pretty well.

nickplee avatar Aug 23 '16 20:08 nickplee

OMG I didn't realize u were actually nick lee!! I am trying to do the exact same thing. I am having trouble making the iphone app. And I have no idea how to code my own operating system. I have experimented with usbmuxd between my computer and my phone however the connection (at least the vnc connection didn't seem very fast). are u using vnc? Is your project open source?

Edit: More specifially how do you get the android mk files. I am trying using the android sdk and ndk.

Tdogb avatar Aug 23 '16 20:08 Tdogb

I figured out how to port usbmuxd, all I need now is the app, can you give me some pointers other than the ones on your website. Thanks!

Tdogb avatar Aug 25 '16 21:08 Tdogb

How to port to Android? I need some help...

MarcusXie avatar Aug 29 '16 09:08 MarcusXie

@Tdogb I can't open nick lee's link, could U give me some help? Thanks!

MarcusXie avatar Aug 29 '16 09:08 MarcusXie

Can anyone share the steps they took to get this up and running on Android?

pokmis avatar Dec 07 '17 03:12 pokmis

以下操作基于 Ubuntu / Windows 10 子系统 Ubuntu

~/.bashrc image

sudo apt update sudo apt upgrade sudo apt install libtool sudo apt install automake sudo apt install autoconf sudo apt install python sudo apt install pkg-config sudo apt install pkgconf

export ANDROID_ARM_64=$ANDROID_HOME/ARM_64 $NDK_HOME/build/tools/make-standalone-toolchain.sh --platform=android-24 --arch=arm64 --install-dir=$ANDROID_ARM_64

export PKG_CONFIG_PATH=$ANDROID_ARM_64/lib/pkgconfig export PATH=$ANDROID_ARM_64:$PATH export PATH=$PKG_CONFIG_PATH:$PATH export PATH=$ANDROID_ARM_64/bin:$PATH

libplist ./autogen.sh --host=aarch64-linux-android --prefix=$ANDROID_ARM_64 --without-cython CFLAGS=-static LDFLAGS=-static

libusbmuxd ./autogen.sh --host=aarch64-linux-android --prefix=$ANDROID_ARM_64 CFLAGS=-static LDFLAGS=-static

openssl ./Configure --cross-compile-prefix=aarch64-linux-android- --prefix=$ANDROID_ARM_64 linux-armv4 no-asm no-ui no-shared enable-weak-ssl-ciphers CFLAGS=-static LDFLAGS=-static

libimobiledevice ./autogen.sh --host=aarch64-linux-android --prefix=$ANDROID_ARM_64 --without-cython CFLAGS=-static LDFLAGS=-static

libusb ./autogen.sh --host=aarch64-linux-android --prefix=$ANDROID_ARM_64 --disable-udev CFLAGS=-static LDFLAGS=-static

usbmuxd ./autogen.sh --host=aarch64-linux-android --prefix=$ANDROID_ARM_64 CFLAGS=-static LDFLAGS=-static

AiXanadu avatar Dec 05 '20 01:12 AiXanadu

Dear @XanaduAPI Pls help to let me know how I can folder ARM_64 in ANDROID_HOME path. It only has sdk folder. Thank you so much!

tuanjnfor avatar Dec 18 '20 10:12 tuanjnfor

If you need the executable files and library files transplanted from libimobiledevice open source project to Android platform, you can go to https://github.com/cczhr/libimobiledevice_android to view them. I compiled some of them .Hope to help you

cczhr avatar Feb 27 '21 12:02 cczhr

If you need the executable files and library files transplanted from libimobiledevice open source project to Android platform, you can go to https://github.com/cczhr/libimobiledevice_android to view them. I compiled some of them .Hope to help you

I have compiled files too, but will yours work properly without jailbreaking? Or did you test it?

AiXanadu avatar Mar 01 '21 01:03 AiXanadu

@XanaduAPI Android devices need root permission to run .I made a small project based on this library. Here is the demo video link:https://www.bilibili.com/video/BV1MZ4y1P7K3

cczhr avatar Mar 02 '21 09:03 cczhr

@XanaduAPI Android devices need root permission to run .I made a small project based on this library. Here is the demo video link:https://www.bilibili.com/video/BV1MZ4y1P7K3

If you need to jailbreak to run it, it's not necessary. Because I'm already running it on regular ARM(Linux).

AiXanadu avatar Mar 02 '21 09:03 AiXanadu

@XanaduAPI 你是怎么做到的,方便微信联系吗? 有偿咨询 我的微信 twcjjww, 电话 18284228392

tangwanchao avatar Jul 15 '21 09:07 tangwanchao