View Single Post
Old 03-06-2023, 08:21 PM   #151
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Quote:
Originally Posted by DuckieTigger View Post
You have to replace current with the real number. Use
Code:
pm list users
to get it.
AAAAAAAAAAAAAAAHHHHHRGH. Apparently all the system tools in Android run under java, not just the apps you install. Horrible, no wonder it is so slow. Is Android just a linux kernel that starts up a java VM? Anyway, if you don't want to use adb, you can use the package manager, but much simpler than what you are thinking:

Code:
$ adp push com.amazon.kindle-4.16.0.75-1145045067-minAPI16.apk /mnt/sdcard/k.apk
com.amazon.kindle-4.16.0.75-1145045067-minAPI16.apk: 1 file pushed, 0 skipped. 18.8 MB/s (40868769 bytes in 2.076s)
$ adb shell
root@generic:/ # pm install /mnt/sdcard/k.apk
        pkg: /mnt/sdcard/k.apk
Success
root@generic:/ # exit
This has the same result as
Code:
adb install com.amazon.kindle-4.16.0.75-1145045067-minAPI16.apk
No need to reinvent the wheel.
DuckieTigger is offline   Reply With Quote