so according to this article: https://arstechnica.com/gadgets/2017/11/oneplus-engineering-apk-exposes-backdoor-to-root-access/
"...The important part, though, is a "DiagEnabled" activity with a method called "escalatedUp." If this is set to "true," the app will allow root access over Android Debug Bridge, Android's command-line developer tools."
the article says the APK was also found in Asus and Xiaomi devices... I wonder if maybe it is also on the Moto Z?
Nope.
I ran:
Code:
adb shell am start com.android.engineeringmode/.EngineeringMode
and the output is:
Code:
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.android.engineeringmode/.EngineeringMode }
Error type 3
Error: Activity class {com.android.engineeringmode/com.android.engineeringmode.EngineeringMode} does not exist.
Related
Hi all,
I have an elocity A7 Tablet running 2.2 Dexters ElocityA7 Modv1.2, full root access.
I managed to get usb ADB functionality working correctly after forcing the usb mode to client - i can run shell commands etc...
When I first attempted to launch applications from Eclipse I was getting messages stating /sbin/sh : am: not found. I finally managed to get that corrected by editing the am/pm files and creating the correct references with vi.
So now the applications finally install from Eclipse - HOWEVER - they do not launch when I attempt to run or debug. The Apps do get installed correctly, it just appears it Eclipse can't start the activity.
-USB debugging is enabled
Console output when I attempt to run:
==============================================
Code:
[2011-09-25 19:40:58 - test] Android Launch!
2011-09-25 19:40:58 - test] adb is running normally.
[2011-09-25 19:40:58 - test] Performing com.test.TestActivity activity launch
[2011-09-25 19:40:58 - test] Automatic Target Mode: using device '028041454220f4d7'
[2011-09-25 19:40:59 - test] Application already deployed. No need to reinstall.
[2011-09-25 19:40:59 - test] Starting activity com.test.TestActivity on device 028041454220f4d7
At this point nothing further happens - The logcat below just displays the debugger detaches but I don't know exactly why.
LogCat Output when I attempt to run:
==============================================
Code:
09-25 19:40:56.242: DEBUG/AndroidRuntime(12380): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
09-25 19:40:56.242: DEBUG/AndroidRuntime(12380): CheckJNI is OFF
09-25 19:40:56.242: DEBUG/dalvikvm(12380): creating instr width table
09-25 19:40:56.252: DEBUG/dalvikvm(12380): Unable to stat classpath element '/system/framework/com.nvidia.graphics.jar'
09-25 19:40:56.272: DEBUG/AndroidRuntime(12380): --- registering native functions ---
09-25 19:40:56.322: ERROR/BluetoothHidDeviceService.cpp(12380): register_android_server_BluetoothHidDeviceService: Registering HIDD Native Methods
09-25 19:40:56.402: DEBUG/AndroidRuntime(12380): Shutting down VM
09-25 19:40:56.402: DEBUG/dalvikvm(12380): Debugger has detached; object registry had 1 entries
09-25 19:40:56.412: INFO/AndroidRuntime(12380): NOTE: attach of thread 'Binder Thread #3' failed
09-25 19:40:56.592: DEBUG/dalvikvm(1331): GC_EXPLICIT freed 1088 objects / 60016 bytes in 35ms
Grateful if anyone has any ideas or can point me in a direction to determine what the cause may be? I know eclipse is configured correctly as I can launch and debug on my Sony Arc 2.3.3 - I think this might be related to a setting on the A7 system
I've narrowed it down to being a problem with my 'am' command - it's not actually doing anything. Anyone know the proper setup for the am command?
Currently this is what I have:
/sbin/am
--EMPTY-- I think this is the problem. If i delete this file however the am command is not found. Do i need to point this somewhere?
/system/bin/am
# Script to start "am" on the device, which has a very rudimentary
# shell.
#
#!/system/bin/sh
base=/system
export CLASSPATH=$base/framework/am.jar
exec app_process $base/bin com.android.commands.am.Am "[email protected]"
Wow as if - problem solved.
#!/system/bin/sh
Needs to be the FIRST line in the file.
Hi,
Please let me know if this is in the wrong sub-forum or not.
I'm developing an app, which should display the activity of another app (e.g. youtube) in its content.
I'm using the following code to get the activity of a 3th party application:
Code:
public View LoadActivity(String uniqueString) {
LocalActivityManager mgr = getLocalActivityManager();
Intent i = new Intent(this, SomeActivity.class);
Window w = mgr.startActivity("unique_per_activity_string", i);
View wd = w != null ? w.getDecorView() : null;
return wd;
}
However, due Security Restrictions, I'm receiving the following error:
java.lang.SecurityException: Requesting code from com.google.android.youtube (with uid 10065) to be run in process com.xxx.xxx.
Now i'm wondering if there is any way I can avoid this by rooting my device or doing some shell commands.
Regards,
XverhelstX
Hi XDA developers community!
I think this question was not asked before, because it's too specific.
So here is the problem:
From the Terminal Emulator I am trying to start Poot like so:
Code:
am start -a android.intent.action.MAIN -n org.giantpune.Poot.Poot/android.intent.action.MAIN
and get this error message:
Code:
Error type 3
Error: Activity class {org.giantpune.Poot.Poot/android.intent.action.MAIN} does not exist.
I inspected the AndroidManifest.xml and looked for useful intent commands, but had no luck and even converted the .apk with dex2jar.
As I don't have any experience with Java, the sole purpose of decompiling it in the first place was an interesting intent entry on line 136 in the QtActivity.java file.
It is either located in org/kde/necessitas/origo/ as QtActivity.class, when converted with dex2jar.
Or in Poot-debug(W100)/smali/org/kde/necessitas/origo/ as QtActivity.smali, when decompiled with apktool.
What I am trying to achieve is not only starting the app from the console, but to make it run the action of the "Press here to poot" button.
The device is rooted, should that matter at all.
How can I achieve this and do I even need intent commands or not?
I hope you can help.
Bump
Can anybody help?
As nobody has answered, here is the information I was able to gather meanwhile:
According to a post (can't post link due to restriction) on Android Enthusiasts I need to enter a classname like this:
Code:
am start -a android.intent.action.MAIN -n <package_name>/<full_class_name>
But as there is no class name specified in the AndroidManifest.xml (Link located in first post above), I am not sure how this problem can be solved.
I entered different variations of the command:
Code:
am start -a android.intent.action.MAIN org.giantpune.Poot
Code:
am start org.giantpune.Poot/android.intent.action.MAIN
Code:
am start -a android.intent.action.LAUNCHER org.giantpune.Poot
Code:
am start org.giantpune.Poot/android.intent.action.LAUCHER
None of them worked.
Can someone answer this?
Hi, Messenger Beta recently released a dark theme in development. I wanted to try it out but it didn't work.
This is what I get when I type in the code in adb shell:
Starting: Intent { cmp=34com.facebook.orca/com.facebook.abtest.gkprefs.GkSetting
sListActivity34 }
Error type 3
Error: Activity class {34com.facebook.orca/com.facebook.abtest.gkprefs.GkSetting
sListActivity34} does not exist.
My device is Redmi Note 4x (SD)
I have an Android(7) phone and a Linux pc. By enabling USB debugging and using the terminal of my pc, I am able to read the notifications of my phone using the command:
Code:
adb shell dumpsys notification --noredact
Now, there are some notifications in android in which we can interact with the app directly from the notification. For example, in a Whatsapp notification, there are usually two buttons: Reply & Mark as read. In YouTube, there are options like Play, Turn off, Watch later. In the output of the above command, these options are visible in the following form:
actions={
[0] "Reply" -> PendingIntent{6becf48: PendingIntentRecord{87b8050 com.whatsapp startService (whitelist: +30s0ms)}}
[1] "Mark as read" -> PendingIntent{c1661e1: PendingIntentRecord{b8e3249 com.whatsapp startService (whitelist: +30s0ms)}}
}
Click to expand...
Click to collapse
I have two questions:
Can we interact with these options from adb shell? For example, is there any command like
Code:
adb shell <SOME COMMAND> 'Message to be sent in whatsapp with reply option'
which will send the text as a reply in whatsapp without opening the app?
Is it possible to swipe the notifications using any adb command? (Not the
Code:
adb shell input swipe x0 y0 x1 y1
, it requires to unlock the phone each time)
Some comments:
Here is what I found that may be relevant to this question.
I think that I have to somehow launch the specific intent linked to the mentioned PendingIntent id (in this case 6becf48 or 87b8050)
Using the command
Code:
adb shell dumpsys activity intents > output.txt
and then searching for 87b8050 in output.txt, I found the name of the intent. It was as follows:
* PendingIntentRecord{87b8050 com.whatsapp startService (whitelist: +30s0ms)}
uid=10104 packageName=com.whatsapp type=startService flags=0x0
requestIntent=act=com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE dat=content://com.whatsapp.provider.contact/contacts/2256 cmp=com.whatsapp/.notification.DirectReplyService (has extras)
whitelistDuration=+30s0ms
Click to expand...
Click to collapse
Now I think that it may be possible to launch the intent
Code:
com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE
using adb shell am command, and passing the intent id and message as some parameters.
(Just like we can launch Whatsapp from adb with am command, it should be possible to launch the pendingIntent also.)
I'm searching for something similar.. Did you figure this out or still exploring?
bump !