adb

Android: Root -> Give app permission -> Unroot? Does an app loose permission granted by su after unrooting the phone?

别来无恙 提交于 2020-12-15 04:33:50
问题 App.apk programatcially runs the command: Runtime.getRuntime().exec("screenrecord", "--time-limit 5", "/sdcard/demo1.mp4") To do so, It requires permission, which also requires rooting the phone to give this app permissions. The problem is rooting puts the phone at both malfunctioning and security risks. Note: This app is not to be published, but used by one normal user. The question: Is It possible to: 1- Root the phone, then 2- Give the app this permission, then 3- Unroot the phone In other

Could not really install apk successfully via command line

爱⌒轻易说出口 提交于 2020-12-13 03:28:24
问题 Pixel 3XL could not install app via adb but could using AS run to install the app I use the command line to install the apk and it said it is successfuly. But I could not see the icon in the launcher. Plus, when I try to list the installed apk, it is not in the list. WM-C02WM0T3HTD8:~ zgong$ adb shell cmd package list packages | grep `common_string_in_package_name_with_installed_app_package` package:A package:B package:C package:D WM-C02WM0T3HTD8:~ zgong$ adb install XXXX.apk Performing

Could not really install apk successfully via command line

你离开我真会死。 提交于 2020-12-13 03:28:18
问题 Pixel 3XL could not install app via adb but could using AS run to install the app I use the command line to install the apk and it said it is successfuly. But I could not see the icon in the launcher. Plus, when I try to list the installed apk, it is not in the list. WM-C02WM0T3HTD8:~ zgong$ adb shell cmd package list packages | grep `common_string_in_package_name_with_installed_app_package` package:A package:B package:C package:D WM-C02WM0T3HTD8:~ zgong$ adb install XXXX.apk Performing

Android studios doesn't update app on mobile device

杀马特。学长 韩版系。学妹 提交于 2020-12-06 16:01:54
问题 My problem is that when I ran my app and use my mobile device the app isn't updated with any of the changes I've made to the code. I've checked the 'Android Device Monitor' and it sees my phone. Yesterday I downloaded 'universal adb driver' because I was trying to print a logcat. I thought that downloading this driver despite already having USB google driver might have caused the issuse. I've uninstalled univeral adb driver but the problem persists. Can anybody help me 回答1: I know I am late,

adb error (error: protocol fault (couldn't read status): Invalid argument)

*爱你&永不变心* 提交于 2020-12-05 12:07:33
问题 I am unable to connect to my phone using adb. I am getting the following error: D:\softwares\Development\Android\android-sdk-windows\platform-tools>adb devices -l List of devices attached * daemon not running. starting it now on port 5037 * * daemon started successfully * error: protocol fault (couldn't read status): Invalid argument http://s18.postimg.org/7fdc8w9dl/screenshot_97.png Previously i am getting this error in windows 8.1 then i have installed windows 10 and error resolved but now

adb error (error: protocol fault (couldn't read status): Invalid argument)

别说谁变了你拦得住时间么 提交于 2020-12-05 12:06:43
问题 I am unable to connect to my phone using adb. I am getting the following error: D:\softwares\Development\Android\android-sdk-windows\platform-tools>adb devices -l List of devices attached * daemon not running. starting it now on port 5037 * * daemon started successfully * error: protocol fault (couldn't read status): Invalid argument http://s18.postimg.org/7fdc8w9dl/screenshot_97.png Previously i am getting this error in windows 8.1 then i have installed windows 10 and error resolved but now

React-Native run-android on specific device

半腔热情 提交于 2020-11-30 04:50:55
问题 Is it possible to use the run-android command for one specific device only? For example, if I have three devices (or emulators) connected and I want to use run-android on only one of them? Maybe something like adb install -s DEVICE_NUMBER ? Thanks in advance 回答1: Elaborating on @alexander 's answer, you can use the following workflow: cd android ./gradlew assembleDebug # assembleRelease for release builds adb install -s <yourdevice> app/build/outputs/apk/yourapk.apk # You can check the

Installing sqlite3 on an external device without emulator

这一生的挚爱 提交于 2020-11-29 10:47:56
问题 I am a student and I want to learn about using sqlite3 on android. My friend tried to run the android emulator and start typing commands adb -e shell , su , navigated through the emulator storage, then run sqlite3 mydb.db . Everything went fine. But whenever we tried running adb with the use of an external physical android device, running sqlite mydb.db is a problem. ADB cannot somewhat find the sqlite executable. I already rooted my device and granted permission the adb but still it doesn't