rooted-device

Unable to run 'adb root' on a rooted Android phone [duplicate]

谁都会走 提交于 2019-12-17 22:34:59
问题 This question already has answers here : adb shell su works but adb root does not (8 answers) Closed 2 years ago . After rooting my device, I need to run adb root and then adb shell so I could then access my applications database. When trying to run adb root I keep getting "adbd cannot run as root in production builds". Why is this? The only other option is to use the Android emulator for testing, but we all know how terrible the emulator is (not really a viable development solution). 回答1: I

Cannot open /data folder in a rooted Android device

微笑、不失礼 提交于 2019-12-10 10:39:42
问题 My HTC Sensation is rooted (I can see the SuperUser app; I can su using the Terminal Emulator app; I was able to install Android Stock ROM Cyanogenmod). I'm not able to open the /data folder using either ADT or adb shell su (permission denied) or File Expert app. What can I do to open the folder? 回答1: I found the answer and solution: As for access the adb shell , I need to enable "Root access" for ADB in "Developer options" (this apply for stock Android 4.0.4 by Cyanogenmod but the same

android + scala + preinstalled scala libraries + disabled proguard throws ClassNotFoundException

点点圈 提交于 2019-12-08 07:49:05
问题 Final purpose of this feat: Use android device for development by fast compiling without needing to use proguard each single time (which causes huge delays) First try is on Sony Ericsson Xperia Mini Pro I have installed in it Cyanogenmod which is already rooted and the root checker app has verified it. This is the app I used to embed Scala library 2.9.1 inside android device: https://github.com/jbrechtel/Android-Scala-Installer The lines uses-library android:name="scala_... are now included

Samsung TV (anynet+) control with Android Device using HDMI CEC

狂风中的少年 提交于 2019-12-08 03:14:50
问题 I am using command line to control the TV like power on, power off, volume up and volume down from rooted Android Device. i am able to power on and power off using the following command. Process p; try { p = Runtime.getRuntime().exec("su"); DataOutputStream os = new DataOutputStream(p.getOutputStream()); os.writeBytes("su" + "\n"); // power on command os.writeBytes("echo 0x40 0x04" > /sys/class/cec/cmd" + "\n"); os.writeBytes("exit\n"); os.flush(); } catch (IOException e) { e.printStackTrace(

ScreenCapture via MediaProjection without user intervention in Kiosk apps - Android

爱⌒轻易说出口 提交于 2019-12-07 17:04:13
问题 I work for a digital signage company which has Android devices running in kiosk mode. Lately, we wanted to add screen capture for debugging. The easiest way to do that was to use getWindow().getDecorView().getRootView().getDrawingCache() to create bitmap and to send it over the network, but this will not capture videos as it's been rendered in surface view. MediaProjection's createVirtualDisplay seems promising, but the explicit permission needed to use this feature is not acceptable. Even

Cannot open /data folder in a rooted Android device

六眼飞鱼酱① 提交于 2019-12-06 04:09:37
My HTC Sensation is rooted (I can see the SuperUser app; I can su using the Terminal Emulator app; I was able to install Android Stock ROM Cyanogenmod). I'm not able to open the /data folder using either ADT or adb shell su (permission denied) or File Expert app. What can I do to open the folder? I found the answer and solution: As for access the adb shell , I need to enable "Root access" for ADB in "Developer options" (this apply for stock Android 4.0.4 by Cyanogenmod but the same option could be present somewhere else in your phone) As for File Expert, the "Root Explorer" functionality is

ScreenCapture via MediaProjection without user intervention in Kiosk apps - Android

北城余情 提交于 2019-12-06 03:26:53
I work for a digital signage company which has Android devices running in kiosk mode. Lately, we wanted to add screen capture for debugging. The easiest way to do that was to use getWindow().getDecorView().getRootView().getDrawingCache() to create bitmap and to send it over the network, but this will not capture videos as it's been rendered in surface view. MediaProjection's createVirtualDisplay seems promising, but the explicit permission needed to use this feature is not acceptable. Even requesting user permission for the first time and persisting the result for further use is not acceptable

How to obtain NFCEE_ADMIN permission on rooted phone?

♀尐吖头ヾ 提交于 2019-12-01 13:24:43
The NFCEE_ADMIN permission is signature level. However, is it possible to "cheat" to get this permission on a rooted phone ? Maybe using a technique similar to the way ClockSync does it ? I am trying to use reflexion techniques to get access to NFCExtras : mAdapter = NfcAdapter.getDefaultAdapter(this); try { Class mynfcextras = Class.forName("android.nfc.INfcAdapterExtras"); Method getnfcExtras = mAdapter.getClass().getMethod("getNfcAdapterExtrasInterface"); Object nfcExtras = getnfcExtras.invoke(mAdapter); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } But

How To check Windows device is rooted/jailbrake or not programatically?

谁说我不能喝 提交于 2019-11-30 15:20:13
Since I am new to Windows Phone Technology, I want to programatically find in my application that windows device is rooted/jailbrake or not. I found many links but it seems like no way for finding rooted windows device programatically. So is there any way to find rooted/jailbreak windows device programatically any API available for this ? Can anyone help me ? Thanks Rooting and/or jailbreaking is not officially supported by Microsoft and therefore there is no official way for you to check if your application is running on such device. In principle, you could check that, but that check would

How To check Windows device is rooted/jailbrake or not programatically?

偶尔善良 提交于 2019-11-29 22:08:46
问题 Since I am new to Windows Phone Technology, I want to programatically find in my application that windows device is rooted/jailbrake or not. I found many links but it seems like no way for finding rooted windows device programatically. So is there any way to find rooted/jailbreak windows device programatically any API available for this ? Can anyone help me ? Thanks 回答1: Rooting and/or jailbreaking is not officially supported by Microsoft and therefore there is no official way for you to