{Q}how to Integrate updates with adb commands - Android Q&A, Help & Troubleshooting

I want use adb commands to "integrate" the update into the system (google play, gmail etc...)
i am not a root
, help me please thanks

Even with adb you can not write to /system without root. You need read/write access to do so, this means you will need to root your device
Sent from my Nexus 4 using XDA Premium 4 mobile app

Related

[Q]Can I uninstall an app via adb?

Is there a command/parameter that I can use to uninstall an app from the emulator or even a device?
I have gone through settings and I also blanked out the emulator session, but both are very time consuming. I thought maybe there was an easier way. Any suggestions?
Thanks...
Sent from my SAMSUNG-SGH-I897 using XDA App
adb remove (full app filename, no extension) eg adb remove com.developer.appname
or adb shell rm /data/app/(full app filename with apk extension)
to find the file name, use adb shell ls /data/app/
Thanks, I'll give it a try. I find it interesting though that the docs don't have the remove command. Also, I found an adb wiki that also does not have the remove command but does have an uninstall command. Why the differences? Oh well, even though I did not see it in the docs I should have at least tried the uninstall for grins before I posted. It is late so I will try both tomorrow.
Thanks again.
Sent from my...
Device Admin
Hello,
This uninstall parameter is being fail to remove app which is privileged as Device Admin.
How to deactivate Device Admin Privilege on any app thru adb ?
How to uninstall Device Admin App thru ADB ?

There must be auniversal way to root and change imei for mtk6577 and ics phones

I have one x pro mtk6577 CPU phone and i can not root and can not change imei, i really need help, every mtk6577 phone has different root methods, but there must be a universal way to root them
I really need to root the phone and change imei
You may find help in rooting it. ( no universal method) you will not find any help on how to change the IMEI as this illegal in magnum places
Sent from my SGH-I777 using Tapatalk 2
Try superoneclick and unlock root.
As stated above changing the IMEI is illegal so no help from here
Sent from my MB508 using xda premium
Download the correct "su" binary for your handset, unzip the file, read the installer script and use the android debug bridge application (part of the software development kit, install the platform tools module) to root your device (connect your handset to a PC using a USB cable). Use the "adb shell" command and "mount -o rw,remount" to remount the system partition as read-write and push the su binary to the correct location. Install the busybox app and you should have a rooted device.

Shell

What exactly is shell.... i have root permissions on my phone and every time I turn it on all the apps that need root permissions tell me with a pop up message.... then a strange app called shell pops up and starts repeting the process of asking for root permissions.... what is shell? Is it only in my phone??
Sent from my GT-S5310 using XDA Premium 4 mobile app
leodani said:
What exactly is shell.... i have root permissions on my phone and every time I turn it on all the apps that need root permissions tell me with a pop up message.... then a strange app called shell pops up and starts repeting the process of asking for root permissions.... what is shell? Is it only in my phone??
Sent from my GT-S5310 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Shell is nothing but terminal (it is Linux command prompt).
Android is built on Linux kernel. So it includes terminal thing and it is present on every android.
You can use Terminal Emulator from Play Store or "adb shell" command from adb to get access to terminal and execute commands. (Most of the Linux commands work if you have busybox).
Speaking about toast messages of root access-
If you have used any Linux then you will see in Linux you achieve "root" rights (much similar to administrator in Windows) by executing "su" command in terminal to get elevated administrative rights. Same command is executed by root apps to get root access and when they get access toast message pops up.
You can also get "root" access in terminal/adb shell by typing "su" command (required when you use "ls", "dd" and many other commands where you cannot normally access).
Sent from my GT-S5360 Gadget of Mass Destruction by xda-app
using CWM........Busybox commands........ No I use my hands

Can anyone help me on understanding ADB commands?

Hey all I hope I'm not in the wrong section and I tried searching for an already similar if not identical thread but couldn't find one(probably not looking too hard) but I have a rooted LG G2 and I have ADB up and running but I don't know the commands I'm assuming. I type "ADB shell" and it connects and finds device but the only command that works for me is "reboot system". I've tried "boot recovery" and a few iterations but no luck.. Do I just not know the correct commands to tell it?
Sent from my LG-D801
DurbanPoison24 said:
Hey all I hope I'm not in the wrong section and I tried searching for an already similar if not identical thread but couldn't find one(probably not looking too hard) but I have a rooted LG G2 and I have ADB up and running but I don't know the commands I'm assuming. I type "ADB shell" and it connects and finds device but the only command that works for me is "reboot system". I've tried "boot recovery" and a few iterations but no luck.. Do I just not know the correct commands to tell it?
Sent from my LG-D801
Click to expand...
Click to collapse
It would help if you told us what it is you're trying to do. If you just want a full list of every command then there's threads and websites that have it all. If you're trying to do something specific then let us know and we'll try and give you the correct commands.
The most common you'll use are:
adb devices - To ensure phone is connected correctly.
adb shell - To access the phone shell (?).
adb push [filename] /path/to/destination - Send a file from PC to phone, usually the sdcard.
Mr_JMM said:
It would help if you told us what it is you're trying to do. If you just want a full list of every command then there's threads and websites that have it all. If you're trying to do something specific then let us know and we'll try and give you the correct commands.
The most common you'll use are:
adb devices - To ensure phone is connected correctly.
adb shell - To access the phone shell (?).
adb push [filename] /path/to/destination - Send a file from PC to phone, usually the sdcard.
Click to expand...
Click to collapse
If it makes any sense I really wasn't trying to do anything specific I just wanted to make sure everything was working right. And as for what wasn't working for me was telling the phone to go into recovery. That's honestly the only thing I was trying.
Sent from my LG-D801 using xda app-developers app
You don't need a shell for this
adb reboot recovery
Should do the trick, opening a shell gets you into the phones file system which is not needed to reboot to recovery
Just do a quick Google search and you will find many guides on this, especially here in xda
Sent from my Nexus 7 using XDA Premium 4 mobile app

[Q] How can I execute shell commands from my app with root permissions?

I actually have got a prerooted business device by the device manufacture. Trough adb shell I’m instantly have su permissions without need to use the “su” command.
My app needs for certain operations root permissions. For instance, setting sim-pin by my app is possible, so it seems like, the app has all the root permissions.
My problem is: the app uses some shell commands. e.g. to set the systemtime. But that seems not to work.
On consumer devices like Samsung s4, after rooting the device and installing chainfire su app, setting the systemtime works fine.
My business device coming without preinstalled su-app, so I tried to install chainfire’s su app v 2.46 as a systemapp. But his app told me, my su binaries which comes from the prerooted device aren’t up to date.
So I tried to override them by chainfire’s su binaries to system/xbin, but after that, the su app told me there are no su binaries installed…
How can I execute shell commands from my app with root permissions?
hi
Did you poot afterwards? Look here poot.apk . If your device reboots it should have worked. Or... You can download the debian noroot app from google play store and just use the root terminal if you want to wait for (probably) nearly a 1gb app for only that purpose

Categories

Resources