Сотовый фрикинг How To run EngineerMode from adb (get root)

Discussion in 'Электроника и Фрикинг' started by murpa, 6 Apr 2016.

  1. murpa

    murpa New Member

    Joined:
    24 Jan 2014
    Messages:
    7
    Likes Received:
    1
    Reputations:
    0
    # adb shell am start -a android.intent.action.MAIN -n com.mediatek.engineermode/.EngineerMode

    How To create this magic cmd:

    in google search: how to run apk from adb
    on page N2
    www.android.pk: Launch app through adb shell - Android News & Updates
    This is about how to launch android application from the adb shell.
    ... How to Install Android APK on Dell Streak with SDK Commands.

    From site I get and run this:
    # adb shell am start -a android.intent.action.MAIN -n com.android.browser/.BrowserActivity
    And I'm happy!

    Next step get apk and find start points.
    # adb pull /system/app/Browser.apk ./
    # adb pull /system/app/EngineerMode.apk ./


    Find working.
    # aapt l -a ./Browser.apk | grep BrowserActivity
    A: android:name(0x01010003)=".EngineerMode" (Raw: ".EngineerMode")
    A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")


    Find like working.
    # aapt l -a ./EngineerMode.apk | grep A\:\ android\:name
    A: android:name(0x01010003)=".EngineerMode" (Raw: ".EngineerMode")
    A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")


    Search name like com.android.browser.
    # aapt l -a ./EngineerMode.apk | less

    Create cmd like working.
    # adb shell am start -a android.intent.action.MAIN -n com.mediatek.engineermode/.EngineerMode

    That all of How To create a litle magic.