Find a string
Alt+b
Once you've done this, be sure to encase the string you want to find in "". For example:
"string to find"
Open breakpoints window
Ctrl + Alt + b
Preset breakpoints
- Click Debugger
- Debugger options...
- Set specific options
- Check the box next to preset BPTs
- Click OK
Debug Android Activity
- Find an activity in a package that you want to look at
- Click Debugger -> Debugger options -> Set specific options
- Set the ADB executable (you can find this with
which adb
) - Click Fill from AndroidManifest.xml
- Find the APK or
AndroidManifest.xml
associated with the package you're interested in - If an Activity isn't populated, specify the Activity manually
- Click OK
- Next you'll need to do a port forward:
pid=`adb shell ps -A | grep packagename | awk -F' ' '{print $2}'`
adb forward tcp:23915 jdwp:$pid
- Confirm that it's working:
adb forward --list
- Start the debugger by pressing F9