Problems installing apk on Android 10 - Moto G Power Guides, News, & Discussion

I downloaded over USB an app.apk to my just purchased Motorola moto g power that has Android 10 on it. I enabled debugging and connected to the device over adb. Now I want to install that application, but I'm struggling to find it. I keep getting access denied when navigating the directory structure. I'm not exactly sure where the .apk is on the filesystem. I did a drag n' drop from Windows 10 to the path "This PC\moto g power\Internal shared storage\Download" to put the .apk on the phone.
How can I navigate to the apk file through the shell when I keep getting access denied? The phone isn't rooted, I haven't done this before w/out root. Any tips?
Code:
adb -s ZY227QFHK8 shell
sofia:/ $ ls
ls: ./init.zygote64_32.rc: Permission denied
ls: ./init.rc: Permission denied
ls: ./init.usb.rc: Permission denied
ls: ./ueventd.rc: Permission denied
ls: ./init.zygote32.rc: Permission denied
ls: ./init: Permission denied
ls: ./cache: Permission denied
ls: ./init.environ.rc: Permission denied
ls: ./dsp: Permission denied
ls: ./init.recovery.qcom.rc: Permission denied
ls: ./postinstall: Permission denied
ls: ./init.usb.configfs.rc: Permission denied
ls: ./module_hashes: Permission denied
ls: ./postinstall_oem: Permission denied
ls: ./metadata: Permission denied
acct apex bin bugreports charger config d data debug_ramdisk default.prop dev etc lost+found mnt odm oem proc product product_services res sbin sdcard storage sys system vendor
1|sofia:/
sofia:/ $ ls /data
ls: data: Permission denied
1|sofia:/
1|sofia:/ $ cd /data
sofia:/data $ ls
ls: .: Permission denied
1|sofia:/data

Mtn Lion said:
I downloaded over USB an app.apk to my just purchased Motorola moto g power that has Android 10 on it. I enabled debugging and connected to the device over adb. Now I want to install that application, but I'm struggling to find it. I keep getting access denied when navigating the directory structure. I'm not exactly sure where the .apk is on the filesystem. I did a drag n' drop from Windows 10 to the path "This PC\moto g power\Internal shared storage\Download" to put the .apk on the phone.
How can I navigate to the apk file through the shell when I keep getting access denied? The phone isn't rooted, I haven't done this before w/out root. Any tips?
Click to expand...
Click to collapse
Try this in the shell:
cd /storage/emulated/0/Download

Couldnt you simply install it executing `adb install myapp.apk`?

Related

Rooting tablet fails (xda "Root MANY ANDROID"-method)

Hi there,
I am trying to root my tablet (Zync Z930) with the "Root MANY ANDROID" method ( http://forum.xda-developers.com/showthread.php?t=1886460 ), however, I have some problems:
Code:
[email protected]:/home/badday/Downloads# sh ./RunMe.sh ======================================================================
= This script will root your Android phone with adb restore function =
= Script by Bin4ry (thanks to Goroh_kun and tkymgr for the idea) =
= Idea for Tablet S from Fi01_IS01 =
= (22.11.2012) v17 =
= ported to Linux by Kamistral (15.09.2012), =
= updated by codeworkx (01.10.2012) =
======================================================================
Device type:
1) Normal
2) Special (for example: Sony Tablet S, Medion Lifetab)
x) Unroot
Make a choice:
1
Normal mode enabled!
Checking if i should run in Normal Mode or special Sony Mode
Please connect device with ADB-Debugging enabled now ...
adb server is out of date. killing...
* daemon started successfully *
remote object '/system/bin/ric' does not exist
remote object '/system/app/Backup-Restore.apk' does not exist
Normal Mode enabled!
Please connect device with ADB-Debugging enabled now ...
./RunMe.sh: 87: [: 1: unexpected operator
Pushing busybox ...
98 KB/s (1085140 bytes in 10.769s)
Pushing su binary ...
88 KB/s (91980 bytes in 1.020s)
Pushing Superuser app
98 KB/s (996704 bytes in 9.868s)
Pushing ric
0 KB/s (57 bytes in 0.139s)
Making busybox runable ...
./RunMe.sh: 100: [: 0: unexpected operator
./RunMe.sh: 103: [: 0: unexpected operator
Now unlock your device and confirm the restore operation.
Please look at your device and click RESTORE!
If all is successful i will tell you, if not this shell will run forever.
Running ...
Successful, going to reboot your device in 10 seconds!
connect: Invalid argument
error: device not found
Waiting for device to show up again ...
connect: Invalid argument
Copying files to it's place ...
./RunMe.sh: 147: [: 0: unexpected operator
mount: permission denied (are you root?)
You can close all open command-prompts now!
After reboot all is done! Have fun!
Bin4ry
Press key to exit ..../RunMe.sh: 284: read: arg count
[email protected]:/home/badday/Downloads# ./adt-bundle-linux/sdk/platform-tools/adb shell
adb server is out of date. killing...
* daemon started successfully *
[email protected]:/ $ su
/system/bin/sh: su: not found
The special method also does not seem to work (I fixed the script errors of type "unexpected operator" meanwhile):
Code:
[email protected]:/home/badday/Downloads# sh ./RunMe.sh
======================================================================
= This script will root your Android phone with adb restore function =
= Script by Bin4ry (thanks to Goroh_kun and tkymgr for the idea) =
= Idea for Tablet S from Fi01_IS01 =
= (22.11.2012) v17 =
= ported to Linux by Kamistral (15.09.2012), =
= updated by codeworkx (01.10.2012) =
======================================================================
Device type:
1) Normal
2) Special (for example: Sony Tablet S, Medion Lifetab)
x) Unroot
Make a choice:
2
Special mode enabled!
Special mode:
1) Root
2) Rollback
Make a choice:
1
Please connect device with ADB-Debugging enabled now ...
95 KB/s (314540 bytes in 3.200s)
pkg: /sdcard/tmp/Term.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
99 KB/s (1085140 bytes in 10.699s)
88 KB/s (91980 bytes in 1.019s)
98 KB/s (996704 bytes in 9.859s)
97 KB/s (469980 bytes in 4.700s)
mkdevsh
onload.sh
onload2.sh
packages.xml.sed
remount.sh
VpnFaker.apk
_su
Now unlock your device and confirm the restore operation.
Please look at your device and click "Restore my data"
connect: Invalid argument
1st RESTORE OK
Press [Enter] key to continue ..../RunMe.sh: 175: read: arg count
rm failed for /data/data/com.android.settings/a, Permission denied
Now unlock your device and confirm the restore operation.
Please look at your device and click "Restore my data"
connect: Invalid argument
Achieved!
Press [Enter] key to continue ..../RunMe.sh: 184: read: arg count
cp: can't open '/data/system/appwidgets.xml': Permission denied
cp: can't open '/data/system/called_pre_boots.dat': Permission denied
cp: can't open '/data/system/accounts.db-journal': Permission denied
cp: can't open '/data/system/wallpaper_info.xml': Permission denied
cp: can't open '/data/system/users/userlist.xml': Permission denied
cp: can't open '/data/system/users/0.xml': Permission denied
cp: can't open '/data/system/batterystats.bin': Permission denied
cp: can't open '/data/system/usagestats/usage-20121203': Permission denied
cp: can't open '/data/system/usagestats/usage-history.xml': Permission denied
cp: can't open '/data/system/usagestats/usage-20121204': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/dropbox/[email protected]': Permission denied
cp: can't open '/data/system/throttle/temp': Permission denied
cp: can't open '/data/system/sync/status.bin': Permission denied
cp: can't open '/data/system/sync/pending.bin': Permission denied
cp: can't open '/data/system/sync/accounts.xml': Permission denied
cp: can't open '/data/system/sync/stats.bin': Permission denied
cp: can't open '/data/system/netstats_xt.bin': Permission denied
cp: can't open '/data/system/entropy.dat': Permission denied
cp: can't open '/data/system/inputmethod/subtypes.xml': Permission denied
cp: can't open '/data/system/netstats.bin': Permission denied
cp: can't open '/data/system/netpolicy.xml': Permission denied
cp: can't open '/data/system/registered_services/android.accounts.AccountAuthenticator.xml': Permission denied
cp: can't open '/data/system/registered_services/android.content.SyncAdapter.xml': Permission denied
cp: can't open '/data/system/accounts.db': Permission denied
failed on '/data/system' - Permission denied
failed on '/data/system2' - Permission denied
failed on '/data/app' - Permission denied
mkdir failed for /data/app, File exists
failed on '/data/local/tmp/VpnFaker.apk' - Permission denied
/system/bin/sh: cannot create /data/system/packages.xml: Permission denied
Need to reboot now!
connect: Invalid argument
Waiting for device to come up again ...
Unlock your device, a Terminal will show now, type this 2 lines, after each line press ENTER
/data/local/tmp/onload.sh
/data/local/tmp/onload2.sh
after this is done press a key here in this shell to continue!
If the shell on your device does not show please re-start the process!
Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
at com.android.commands.am.Am.run(Am.java:99)
at com.android.commands.am.Am.main(Am.java:80)
at com.android.internal.os.RuntimeInit.finishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:238)
at dalvik.system.NativeStart.main(Native Method)
Press [Enter] key to continue ..../RunMe.sh: 206: read: arg count
8 KB/s (1241 bytes in 0.139s)
/data/local/tmp/script1.sh[1]: /dev/sh: not found
/data/local/tmp/script1.sh[2]: /dev/sh: not found
/data/local/tmp/script1.sh[3]: /dev/sh: not found
/data/local/tmp/script1.sh[4]: /dev/sh: not found
/data/local/tmp/script1.sh[5]: /dev/sh: not found
/data/local/tmp/script1.sh[6]: /dev/sh: not found
/data/local/tmp/script1.sh[7]: /dev/sh: not found
/data/local/tmp/script1.sh[8]: /dev/sh: not found
/data/local/tmp/script1.sh[9]: /dev/sh: not found
/data/local/tmp/script1.sh[10]: /dev/sh: not found
/data/local/tmp/script1.sh[11]: /dev/sh: not found
/data/local/tmp/script1.sh[12]: /dev/sh: not found
/data/local/tmp/script1.sh[13]: /dev/sh: not found
/data/local/tmp/script1.sh[14]: /dev/sh: not found
/data/local/tmp/script1.sh[15]: /dev/sh: not found
/data/local/tmp/script1.sh[16]: /dev/sh: not found
/data/local/tmp/script1.sh[17]: /dev/sh: not found
/data/local/tmp/script1.sh[18]: /dev/sh: not found
/data/local/tmp/script1.sh[19]: /dev/sh: not found
Almost complete! Reboot and cleanup.
connect: Invalid argument
Waiting for device to come up again ...
/system/bin/sh: su: not found
/system/bin/sh: su: not found
/system/bin/sh: su: not found
You can close all open command-prompts now!
After reboot all is done! Have fun!
Bin4ry
Press key to exit ..../RunMe.sh: 284: read: arg count
[email protected]:/home/badday/Downloads#
Anybody having any idea?
Thanks,
badday
Good attempt badday2! I have the same tab and desperately wanting to root it, but unsuccessful thus far. BTW whats the kind of battery backup you get? Mine doesnt last for an hour max! It gets 100% charged up in 30 min and battery runs out in less than an hour! Whats your experience?
abdulmomin said:
Good attempt badday2! I have the same tab and desperately wanting to root it, but unsuccessful thus far. BTW whats the kind of battery backup you get? Mine doesnt last for an hour max! It gets 100% charged up in 30 min and battery runs out in less than an hour! Whats your experience?
Click to expand...
Click to collapse
Yes, battery is a shame right now. But I wonder whether this is just a software-bug related problem or bad configured software-related one as the capacity of 3600 mAh should not be so bad I think or am I wrong?
dear badday2,
please go to this thread to root your zync z930 tablet.
http://forum.xda-developers.com/showthread.php?t=2093663

Root lg l5 optimus

When i try to root my phone i get this error's:
android 4.0.3
Code:
DON'T TOUCH THE DEVICE OR UNPLUG WHILE ROOTING!
PUSH FILES
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
failed to copy 'busybox' to '/data/local/busybox': Permission denied
failed to copy 'su' to '/data/local/su': Permission denied
failed to copy 'Superuser.apk' to '/data/local/Superuser.apk': Permission denied
Unable to chmod /data/local/busybox: No such file or directory
Unable to chmod /data/local/su: No such file or directory
Unable to chmod /data/local/Superuser.apk: No such file or directory
failed on '/data/local/tmp' - Permission denied
link failed File exists
mount: Operation not permitted
mount: Operation not permitted
/system/bin/sh: cannot create /system/xbin/busybox: Read-only file system
Unable to chmod /system/xbin/busybox: No such file or directory
/system/bin/sh: /system/xbin/busybox: not found
/system/bin/sh: busybox: not found
/system/bin/sh: busybox: not found
Unable to chmod /system/xbin/su: No such file or directory
Unable to chmod /system/xbin/su: No such file or directory
Unable to chmod /system/app/Superuser.apk: No such file or directory
rm failed for /data/local.prop, No such file or directory
rm failed for /data/local/tmp, Permission denied
failed on '/data/local/tmp.bak' - No such file or directory
REBOOT
i have try it whit the apk file but it doesn't work to....
Please anybody help me
No body pleae i want to root my phone i try root.bat and IS11LG_System Backup Test.signed.apk but nothing work's
i just have update my phone when i get him but now i can't root him pleasee help

[Q] cannot create /data/local.prop Permission denied

Was Rooting xperia arc s(2.3.4)(.42) using rooting toolkit and got the error below....
---------------------------------------------------------------
Xperia 2011 ICS Easy Rooting toolkit (v1.0)
created by DooMLoRD
"andorid emulator" trick
Credits go to all those involved in making this possible!
---------------------------------------------------------------
[*] This script will:
(1) root ur device using "andorid emulator" trick
(2) install Busybox (1.18.4)
(3) install SU files (ICS specific)
(4) do some checks for free space, tmp directory
(will remove Google Maps if required)
[*] Before u begin:
(1) make sure u have installed adb drivers for ur device
(2) enable "USB DEBUGGING"
from (Menu\Settings\Developer Options\Development)
(3) enable "UNKNOWN SOURCES"
from (Menu\Settings\Security)
(4) [OPTIONAL] increase screen timeout to 10 minutes
(5) connect USB cable to PHONE and then connect to PC
(6) skip "PC Companion Software" prompt on device
---------------------------------------------------------------
CONFIRM ALL THE ABOVE THEN
Press any key to continue . . .
--- STARTING ----
--- WAITING FOR DEVICE
--- creating temporary directory
mkdir failed for tmp, File exists
--- cleaning
rm failed for *, No such file or directory
--- symlinking tmp directory
--- Rebooting
--- WAITING FOR DEVICE TO RECONNECT
--- PLEASE WAIT, THIS MAY TAKE A WHILE
if it gets stuck over here for a long time then try:
disconnect usb cable and reconnect it
toggle "USB DEBUGGING" (first disable it then enable it)
--- DEVICE FOUND
--- enabling emulator hack
cannot create /data/local.prop: permission denied
--- Rebooting
--- WAITING FOR DEVICE TO RECONNECT
--- PLEASE WAIT, THIS MAY TAKE A WHILE
if it gets stuck over here for a long time then try:
disconnect usb cable and reconnect it
toggle "USB DEBUGGING" (first disable it then enable it)
--- DEVICE FOUND
--- pushing busybox
failed to copy 'files\busybox' to '/data/local/tmp/./busybox': Permission denied
--- correcting permissions
Unable to chmod /data/local/tmp/busybox: No such file or directory
--- remounting /system
/data/local/tmp/busybox: not found
--- checking free space on /system
failed to copy 'files\makespace' to '/data/local/tmp/./makespace': Permission denied
Unable to chmod /data/local/tmp/makespace: No such file or directory
./data/local/tmp/makespace: not found
--- copying busybox to /system/xbin/
/data/local/tmp/busybox: cannot open for read: No such file or directory
--- correcting ownership
Unable to chmod /system/xbin/busybox: No such file or directory
--- correcting permissions
Unable to chmod /system/xbin/busybox: No such file or directory
--- installing busybox
/system/xbin/busybox: not found
rm failed for /data/local/tmp/busybox, No such file or directory
--- pushing SU binary
failed to copy 'files\su' to '/system/bin/su': Read-only file system
--- correcting ownership
Unable to chmod /system/bin/su: No such file or directory
--- correcting permissions
Unable to chmod /system/bin/su: No such file or directory
--- correcting symlinks
rm failed for /system/xbin/su, Read-only file system
link failed Read-only file system
--- pushing Superuser app
failed to copy 'files\Superuser.apk' to '/system/app/./Superuser.apk': Read-only file system
--- cleaning
rm failed for /data/local.prop, No such file or directory
--- rebooting
ALL DONE!!!
Press any key to continue . . .
Guys pls help ...Asap...ty..
Did you follow the instructions?
Sent from Myushi
You do realize, you are using ICS method to unlock your GB Arc :banghead:
sent via XPERIA™
msc3169 said:
You do realize, you are using ICS method to unlock your GB Arc :banghead:
sent via XPERIA™
Click to expand...
Click to collapse
That.
Get proper rooting toolkit (for GB), then we'll see further.

[Q] Root messed up?

So I rooted my phone used it for a bit then for some reason it messed up so I bought root checker pro and it said Root access not properly configured or granted.
Superuser Application Status
NOT installed: Superuser by ChainsDD, SuperSU by Chainfire, or Superuser by Koush
System Files Status
Standard Location
Command: ls -l /system/bin/su:
Result: /system/bin/su: No such file or directory
Analysis: File /system/bin/su does not exist.
Standard Location
Command: ls -l /system/xbin/su:
Result: -rwxr-xr-x root root 66916 2015-01-23 18:48 su
Analysis: Root access IS correctly configured for this file! Executing this file can grant root access! Root user ownership is present and setuid attribute is not present.
Alternative Location
Command: ls -l /sbin/su:
Result: /sbin/su: Permission denied
Analysis: File system permissions restricted and denied access.
Alternative Location
Command: ls -l /system/xbin/sudo:
Result: /system/xbin/sudo: No such file or directory
Analysis: File /system/xbin/sudo does not exist.
User and Group ID Status
Error: stderr: [-] connect ui: Timer expired, stdout: null, exit_value: 1
ADB Shell User Status
ADB setting for shell access, stored in default.prop, is configured as: shell (non root) user - ro.secure=1
System Environment PATH Status
System Environment PATH: /sbin /vendor/bin /system/sbin /system/bin /system/xbin
Results provided for your SGH-I747M - Android 4.3 device by Root Checker Pro version 1.4.2 from joeykrim in the Android Market - my device is an android Galaxy s3 version is 4.3 and I'm not running a Rom and I used towel root please help I can't find the solution anywhere
Hi there,
Please wait until mods will move this thread to the device specific forum.
Stand by
The simplest way to get root in my opinion is to flash Philz Touch recovery for the d2lte using Odin. Then flash super su from recovery, boot phone, let supersu and disble knox, reboot phone, done.
I have an Alcatel ideal 4060a and it's does the exact same thing an says the same when I do my root checker. What do I do to get my root back?
If you have an older kernel, made on or before May 2014, then you can use towel root to gain root.

Internal Storage Permission issues

Hello there,
I got a problem with my internal sdcard... I dont have access to certain directorys...
I am trying to delete a file from a folder (Downloads) and it works.
I am trying to delete a file from a folder (one which a app created on a other rom (ressurection)) and it doesent work, even as root i get permission denied.
Some Infos:
Old ROM: Ressurection Remix
ROM: Bumped Lollipop, Stock
Model: D-855
Carrier: None
All Commands as root:
Output of "#ls -la /sdcard/":
Code:
Downloads: drwxrwx--- root sdcard_r some-date some-time Downloads
Other Folder: drwxrwx--- root sdcard_r some-date some-time Folder
Output of "#ls -la /sdcard/Folder/":
Code:
-rw-rw---- root sdcard_r some-size some-date some-time File-to-delete
Output of "#rm -f /sdcard/Folder/File-to-delete":
Code:
rm: File-to-delete: Permission denied
Any Ideas?
EDIT:
Could someone send me the output of "ls -la /sdcard/" and "ls -la /storage/external_SD" of his G3, I wanna try to set Owner and Group and permissions of the folders

Categories

Resources