美文网首页
通过 shell 分享url到指定app

通过 shell 分享url到指定app

作者: lihao_李浩 | 来源:发表于2020-11-17 16:59 被阅读0次

解包app得到AndroidManifest.xml
搜索text/plainurl分享一般就是text/plain
android:name 就是类名

<activity android:theme="@style/Theme.AppCompat.DayNight.NoActionBar" android:name="com.instagram.direct.share.handler.DirectShareHandlerActivity" android:enabled="false" android:exported="true" android:taskAffinity="com.instagram.android.DirectShareHandlerActivity" android:excludeFromRecents="true" android:launchMode="singleInstance" android:screenOrientation="portrait">
            <meta-data android:name="default-state" android:value="false"/>
            <intent-filter android:label="Direct">
                <action android:name="android.intent.action.SEND"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:mimeType="text/plain"/>
            </intent-filter>
            <meta-data android:name="android.service.chooser.chooser_target_service" android:value="com.instagram.direct.share.choosertarget.DirectChooserTargetService"/>
        </activity>
am start -a android.intent.action.SEND --es 'android.intent.extra.TEXT' 'https://bit.ly/3lQP5rn' -t 'text/plain' -n com.instagram.android/com.instagram.direct.share.handler.DirectShareHandlerActivity

相关文章

  • 通过 shell 分享url到指定app

    解包app得到AndroidManifest.xml搜索text/plainurl分享一般就是text/plain...

  • Android 使用URL链接打开App

    实现一下浏览器通过通过URL打开指定的APP功能。   1、安卓设备已安装APP,打开App并跳到指定的的页面。 ...

  • 2019-11-07 Scheme跳转运用

    业务开发用到其他app跳转自己app到指定页面,实现如下: 在URL TYPES配置好scheme,约定好协议结构...

  • JLRoutes的使用说明

    JLRoutes原理: 1.它是通过url scheme来实现app内部,web到app,app与app之间跳转的...

  • Android9 双屏异显

    双屏异显的三种方式 1、通过adb命令将app启动在指定的屏幕 adb shell am start -n com...

  • Django篇视图

    整个项目图 在app中的view配置文件中配置视图 在项目中指定路由,在项目中指定url地址 项目中的url 指定...

  • Android 通过URL scheme 启动App

    Android 通过URL scheme 启动App 简述:Android 通过URL scheme 实现点击浏览...

  • response.sendRedirect与request.ge

    ①response.sendRedirect(url)-----重定向到指定URL request.getRequ...

  • shell 脚本修改plist配置

    需求:通过脚本修改plist的URL数值,通过了解 MAC自带PlistBuddy修改plist。 通过shell...

  • adb常用命令

    列出连接USB设备 安装apk到指定设备 使用 shell 命令通过 adb 发出设备命令 查看设备的 log 重启手机

网友评论

      本文标题:通过 shell 分享url到指定app

      本文链接:https://www.haomeiwen.com/subject/srxfiktx.html