Install and Run with Command Line - Android Q&A, Help & Troubleshooting

I am trying to Install apk and run it with command line
to Install apk
adb install myapk.apk
Now I am trying to run it with commands .. and after Googling I found something like
adb shell am start -n com.other.ProjectName/.MainActivity
How to know com.other.ProjectName and .MainActivity of an installed apk ..
any easier method will be helpful

U can use
adb pm list packages
command to view the packages installed in your device.
Regards,
Karthick

this command does not seems to work

how do i know and understand the logic of your.package/.YourActivity

stiphen said:
I am trying to Install apk and run it with command line
to Install apk
adb install myapk.apk
Now I am trying to run it with commands .. and after Googling I found something like
adb shell am start -n com.other.ProjectName/.MainActivity
How to know com.other.ProjectName and .MainActivity of an installed apk ..
any easier method will be helpful
Click to expand...
Click to collapse
Follow the steps below.
1. Install the attached .apk for ADW Launcher.
2. Open the Menu.
3. Swipe to the "Add" section of the menu and tap "Custom shortcut".
4. Now tap "Activities".
5. You will be presented with a list of all the apps you have installed; tapping on one of them will drop down a list of all of the packages available to launch for that app. Tapping on one of the packages will create a shortcut for it on the ADW Launcher homescreen.
Hope this helps! :good:

You can see in root/data/apps
Much easy if you use apk installer.exe. You can install apk, lunch, take screen short by singal click.
Sent from my Smartfren Andromax AD6B1H using XDA Free mobile app

thanks for all of your help .. got it

Related

Market Enabler on Tattoo

Hi guys,
I wanted to get access to the US-market (as I'm from Germany...) to get my hands on the facebook, amazon or eBay app.
Thus I rooted my Tattoo (thanks to Coburn64 for his guide) and installed the app Market Enabler 3.0.8.
I tried to switch to another carrier with the app, but I only got "Houston, we've got a problem" instead of the success dialog i was hoping for.
Has anyone got that app to work properly on the Tattoo?
Thanks in advance for your answers.
It's working fine for me. I cannot see many apps though.
So I'm using android emulator, and I can see and download everything from market. It is the best solution.
What Android emulator do you use?
If I install the app on the emulater of my Android SDK I can't use the Android market place, can I?
Edit: Tested it just now and it doesn't work. I haven't rooted the emulated phone but... I hardly think that's necessary, is it?
I use 1.6. I just create an sdcard(google it and you will find how) and select the image file of this sdcard when I creaded the AVD. After that start the AVD, wait android to load, open market app, sign up and download first astro file manager. After that, when you want to install a file to tattoo, download it from market, fire up astro file manager, menu->tools->application manager/backup, select the file you want and press backup. Then go to sdcard/backups/apps to see if is there. If yes, start a dos command prompt, cd to drive and directory in which is the tools folder of SDK (eg cd d:\adroid-SDK\tools)
and write the command adb pull (eg: adb pull /sdcard/backups/apps/com.android.myapp.apk D:\programs\apps)
I have the same problem, great succes in rooting the phone, but i´m not able to get Market Enabler to do what it should.
Any ideas?
Kroman
dancer_69 said:
After that start the AVD, wait android to load, open market app, sign up and download first astro file manager.
Click to expand...
Click to collapse
I created the SD card, fine. But I'm still quite clueless where or how to get the market app. It's not availible on the SD card when I create it.
Did you create the SD card from the image of a real Android phone or did you just use the AVD for that, like I just tried? If you created it from a real phone, how did you manage to do that?
Market was there when I run the emulator image.
But I think you can install it via adb. You need to download it and push it to emulator with command adb push path\to\market.apk /sdcard and then install it on emulator. If your device is rooted you can find and copy to sdcard, the apk package by root explorer. After transfer the package to pc, start the emulator, open a command prompt, cd to android SDK tools directrory(you can put market apk package file there too) and run the adb push command
At long last, I (or rather we - I had help from a friend) managed to get access to the Android market of US.
BUT we didn't even need the Market Enabler for that. By googling for "Vending.apk" (the name of the market app) I found the first link to be of help. I can't paste it here cause I'm new to this forum, but it was the blog of someone called Kumar Bibek.
The way it was described on that blog didn't completely work, but after following the comments we finally had success.
Thanks for your help.
Sounds good that you were able to get access to US market!
I have been trying to find the link (blog) you are talking about, with no luck. Can you describe it a little better where i can find the blog
Kroman
If you google for "Android market on emulator" you should find some link to tech-droid whatever.
I'll try to pass you the link via PM, maybe that'll work.
can you explain the way u enabled usa market here cause i can't ?
thanx
Have you already visited the blog I mentioned in my post? In the comments there is some guy who has successfully created an AVD that can easily connect to the US-Market. Just download his AVD from the link he posted there and adjust the path in the .ini-file to the one you store the data at.
Edit 1:
Let's see if I have the permission to post the link by now:
http://tech-droid.blogspot.com/2009/11/android-market-on-emulator.html
Edit 2:
Fine, it works!

Genius Button

Is it possible to port the app to other ROMS like MIUI and such?
Sent from my HTC Glacier using XDA App
No. It relies on HTC framework and integrated tightly with T-mo bloat.
can it be ported to Desire Roms you think?
Cloudscout on the CM forums was able to port to CM ROM, so I guess it's possible with other ROMs as well.
This is his original post:
Here's what you need to do:
BEFORE YOU INSTALL CYANOGEN MOD you must back up the Genius Button apks and libraries. To do this, you must have the Android SDK as it will require ADB*. If you don't know how to set that up, you'll have to do some studying.
1) Enable debug mode on your phone.
2) Connect the phone to your computer via USB.
3) From the platform-tools directory inside the Android SDK directory, run this command "adb pull /system/lib/libvsuite.so"
4) Run "adb pull /system/lib/libvsuite_sharedlib.so"
5) Run "adb pull /system/app/vsuite.apk"
6) Run "adb pull /system/app/VSuiteApp.apk"
You will now have copies of the two library files and the two apk files necessary for Genius Button and Dragon Dictation.
Now, go ahead and follow the process described in the Wiki to install CM on your phone. Once that is finished, follow these steps:
1) Enable debug mode on your phone.
2) Connect the phone to your computer via USB.
3) From the platform-tools directory inside the Android SDK directory, run this command "adb remount"
4) Run "adb push libvsuite.so /system/lib/libvsuite.so"
5) Run "adb push libvsuite_sharedlib.so /system/lib/libvsuite_sharedlib.so"
6) Run "adb push vsuite.apk /system/app/vsuite.apk"
7) Run "adb push VSuiteApp.apk /system/app/VSuiteApp.apk"
8) Run "adb remount"
9) On your phone, launch ROM Manger and select "Fix Permissions"
10) Once it finishes running the permissions fix, reboot your phone.
The first time you trigger voice dialing via bluetooth, you will get an option screen that asks you if you want to complete the action with Genius Button or Voice Dialer. Check the box that says to always use this selection and then choose Genius Button. Also note, the first time you try to compose a text message, you will be presented with the license agreement for Dragon Dictation. You will need to tap the screen to accept the license. After that, it should work normally.
mr.tenuki said:
Cloudscout on the CM forums was able to port to CM ROM, so I guess it's possible with other ROMs as well.
This is his original post:
Here's what you need to do:
BEFORE YOU INSTALL CYANOGEN MOD you must back up the Genius Button apks and libraries. To do this, you must have the Android SDK as it will require ADB*. If you don't know how to set that up, you'll have to do some studying.
1) Enable debug mode on your phone.
2) Connect the phone to your computer via USB.
3) From the platform-tools directory inside the Android SDK directory, run this command "adb pull /system/lib/libvsuite.so"
4) Run "adb pull /system/lib/libvsuite_sharedlib.so"
5) Run "adb pull /system/app/vsuite.apk"
6) Run "adb pull /system/app/VSuiteApp.apk"
You will now have copies of the two library files and the two apk files necessary for Genius Button and Dragon Dictation.
Now, go ahead and follow the process described in the Wiki to install CM on your phone. Once that is finished, follow these steps:
1) Enable debug mode on your phone.
2) Connect the phone to your computer via USB.
3) From the platform-tools directory inside the Android SDK directory, run this command "adb remount"
4) Run "adb push libvsuite.so /system/lib/libvsuite.so"
5) Run "adb push libvsuite_sharedlib.so /system/lib/libvsuite_sharedlib.so"
6) Run "adb push vsuite.apk /system/app/vsuite.apk"
7) Run "adb push VSuiteApp.apk /system/app/VSuiteApp.apk"
8) Run "adb remount"
9) On your phone, launch ROM Manger and select "Fix Permissions"
10) Once it finishes running the permissions fix, reboot your phone.
The first time you trigger voice dialing via bluetooth, you will get an option screen that asks you if you want to complete the action with Genius Button or Voice Dialer. Check the box that says to always use this selection and then choose Genius Button. Also note, the first time you try to compose a text message, you will be presented with the license agreement for Dragon Dictation. You will need to tap the screen to accept the license. After that, it should work normally.
Click to expand...
Click to collapse
I am running Miui . Do you think this process will work for it? Also I don't have stock anymore can anyone send me the libraries so I can try it out.
Sent from my beautiful mind
hydrogenman said:
can it be ported to Desire Roms you think?
Click to expand...
Click to collapse
Gr8Gorillas DHD port has the genius button on it
Could someone who is running a stock rom with genius pull these files for me?
Sent from my beautiful mind
forum doesn't let me upload for some reason - send me a PM and I'll mail you the files.
I will try to make a zip file later for easier install.
Here is a link to zip that will install the genius button on you ROM. Tested on CM 6.1.2 RC2 and working.
genius button update
Just copy to the root of your sdcard and install from ROM Manager or recovery.
Thanks but didn't work with the miui rom I am using
Sent from my beautiful mind
Nevermind. I see now. Its an app on my desk top. Now I have to remap button to it
Sent from my beautiful mind
Genius Button Attempt
mr.tenuki said:
Here is a link to zip that will install the genius button on you ROM. Tested on CM 6.1.2 RC2 and working.
genius button update
Just copy to the root of your sdcard and install from ROM Manager or recovery.
Click to expand...
Click to collapse
Tried to flash it but was unsucessful..
Do you have "Genius Button" application?
This one does not map a key to the app, it just installs it.
Will this work with cm7
mr.tenuki said:
Here is a link to zip that will install the genius button on you ROM. Tested on CM 6.1.2 RC2 and working.
genius button update
Just copy to the root of your sdcard and install from ROM Manager or recovery.
Click to expand...
Click to collapse
Sent from my HTC Glacier using XDA App
foriesg said:
Will this work with cm7
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
I am on miui and it worked for me
Sent from my beautiful mind
foriesg said:
Will this work with cm7
Click to expand...
Click to collapse
I tried it via web yesterday with no luck. I kept getting force closes. I gave up pretty quickly though.
bittermormon said:
I tried it via web yesterday with no luck. I kept getting force closes. I gave up pretty quickly though.
Click to expand...
Click to collapse
try running fix_permissions and see if that helps.
Genius APK Please
Can someone do a adb pull and provide me with the genius button apk?
Thanks in advance..
The genius button is not one apk, it is 2 apps and 2 libs. In order to get it running you need to push both .apk files to /system/app and both .so files to /system/lib.
If you want to do it manually, unzip the zip file I created and take the files from there.
Sent from my HTC Glacier using XDA App
Ok will try the manual way. Thanks
Sent from my HTC Glacier using XDA App

Python on your Nook Tablet - how-to and why

Why python? - How to Install Python!
Why python?
Check post #26 by fattire in this thread.
http://forum.xda-developers.com/showthread.php?t=1480586&highlight=python&page=3
I tried to follow several threads on the internet to install Python on Android and made a mess of each or dead ended when I could not complete one of the required steps. This works for me (CM7-internal-Alpha-Final). I backed up with (CWM) before I started, completed this tutorial, and flashed back to before so I could complete it again.
How to install Python!
My info on how I installed and setup python.
All of this is done on the NT. If you wish to download it with your pc and place in download folder on your sdcard that will work also.
sl4a http://code.google.com/p/android-scripting/
chose sl4a_5.apk http://code.google.com/p/android-scripting/downloads/detail?name=sl4a_r5.apk&can=2&q
But I want to install python.
We will install python through sl4a and it will provide a shell to write and run python scripts as well as sl4a if you choose. This makes proper setup easy, easy. It also keeps all your programs and scripts in one place with a one click menu.
Run sl4a after it is installed. Hit menu at the bottom and select add. From here you can add Folder, HTML and JavaScript, Shell, Scan Barcode. For now we will not add anything here.
Menu again and this time View. Interpreters, Triggers, Logcat. We are interested in Interpreters so select it. Now we have Shell listed at the top of the window. We are interested in adding Python so on Menu at the bottom select Add. Now we have a list of 7 items to choose from. Choose Python 2.62. Your browser will open and present you with Save as -PythonForAndroid_r5.apk. Click OK. Click on the above file added to download folder on your sdcard. Install and click done.
Run “Python for Android” in your apps. Don't panic it is slow to show on screen. Click Install when the screen shows the Python for Android menu. It begins downloading files and and installing. Once complete you are again presented with the menu. Click Browse Modules. This will pull your browser and show python-for-android page. Click Download pyserial-2.6-py2.6egg. Click the save as button. Now do the same for Twisted and Zope. (I didn't download PyBluez as bluetooth is not working in CM7 at this time). Choose what you wish. Close browser.
Now back to Python. When menu appears choose Import Modules. The files you just downloaded appear for installation. Choose each one pyserial, Twisted, and zope in my case and they are installed for you in the proper locations. Close Python.
Back to SL4A. When you open sl4a you will now see a list of python scripts. Now we will get our editor. Quick touch one of the scripts – I choose weather. Now we get a picture type menu. We can open in shell, option, edit (the pencil), save, delete, and etc. Click the pencil to edit. Here is where we can add our editor. “Don't click use by default' and you will always have a choice of editors. You can choose later but we want the SL4A editor loaded because it has special features for use in SL4A, so choose SL4A. The editor will be downloaded and installed for you. This editor is not my favorite for some things but is useful to have(check its menu) along with your favorite editor. My favorite is Jota Text Editor. You're Done!
Now enjoy python! Make something pretty or down and dirty but try to make something.
I can't be of help on actual use but believe it or not this is as easy as I could make this install and have a proper environment to work with.
I hope you enjoy it.

[GUIDE] Install fleksy keyboard on any android wear with ADB

hi guys, i try to install some querty keyboard like fleksy on android wear with adb comands.
after many attemps i found the way.
You should be having android platflorm Tools to use ADB.
1. Enable Android Debugging in your android wear (tap many times on build version)
2. Connect your android wear watch.
3. connect your smartwatch to phone via bluetooth
4.write: adb devices
5. see if your device is listed (if you see "unhautorized" see your smartphone to allow the permission)
6.Install App to your watch using this Command: adb install yourApkName.apk
7.Type: adb shell ime enable com.syntellia.fleksy.kb/.Fleksy (if this give you an error try com.syntellia.fleksy.keyboard/.Fleksy)
8.Type: adb shell ime set com.syntellia.fleksy.kb/.Fleksy (if this give you an error try com.syntellia.fleksy.keyboard/.Fleksy)
Done.
If i help you press thanks
fer2503 said:
hi guys, i try to install some querty keyboard like fleksy on android wear with adb comands.
after many attemps i found the way.
You should be having android platflorm Tools to use ADB.
1. Enable Android Debugging in your android wear (tap many times on build version)
2. Connect your android wear watch.
3. connect your smartwatch to phone via bluetooth
4.write: adb devices
5. see if your device is listed (if you see "unhautorized" see your smartphone to allow the permission)
6.Install App to your watch using this Command: adb install yourApkName.apk
7.Type: adb shell ime enable com.syntellia.fleksy.kb/.Fleksy (if this give you an error try com.syntellia.fleksy.keyboard/.Fleksy)
8.Type: adb shell ime set com.syntellia.fleksy.kb/.Fleksy (if this give you an error try com.syntellia.fleksy.keyboard/.Fleksy)
Done.
If i help you press thanks
Click to expand...
Click to collapse
I think its great idea, but whenever i try enabling it i get error. I tried changing lines a little bit in sooo many ways but never got "Succes". Most often i got id:null ;/
Lasiu said:
I think its great idea, but whenever i try enabling it i get error. I tried changing lines a little bit in sooo many ways but never got "Succes". Most often i got id:null ;/
Click to expand...
Click to collapse
ok no problem. the problem is that the file package (com.example....) depends on your apk file. So you can do this:
-download this application for windows: apk tool for wear from xda
-connect to your phone
-find in the list the name of your fleksy package (com.syntellia....)
-write it in the adb command. (example: adb shell ime enable "yourpackage"/.Fleksy )
fer2503 said:
ok no problem. the problem is that the file package (com.example....) depends on your apk file. So you can do this:
-download this application for windows: apk tool for wear from xda
-connect to your phone
-find in the list the name of your fleksy package (com.syntellia....)
-write it in the adb command. (example: adb shell ime enable "yourpackage"/.Fleksy )
Click to expand...
Click to collapse
My package's name was same as yours (i checked it ) Any other recommendations? Or do you mean, that i should try enabling keyboard through this tool? Though i didnt see this option when i downloaded it week ago or something
Lasiu said:
My package's name was same as yours (i checked it ) Any other recommendations? Or do you mean, that i should try enabling keyboard through this tool? Though i didnt see this option when i downloaded it week ago or something
Click to expand...
Click to collapse
The tool is only to see the exatly package name. Czn you make a screenshot of your adb command with error and the package name showed in apk tool?
fer2503 said:
The tool is only to see the exatly package name. Czn you make a screenshot of your adb command with error and the package name showed in apk tool?
Click to expand...
Click to collapse
See My apk name is: com.syntellia.fleksy.kb.apk Any ideas? ;/
Lasiu said:
See My apk name is: com.syntellia.fleksy.kb.apk Any ideas? ;/
Click to expand...
Click to collapse
The package name, not the apk name. Post the screenshot of the apktool package list.
fer2503 said:
The package name, not the apk name. Post the screenshot of the apktool package list.
Click to expand...
Click to collapse
Is that what you mean?
Lasiu said:
Is that what you mean?
Click to expand...
Click to collapse
I think that the problem is the /.Fleksy...maybe you can try /.Fleksy.kb or /.Fleksykb
fer2503 said:
I think that the problem is the /.Fleksy...maybe you can try /.Fleksy.kb or /.Fleksykb
Click to expand...
Click to collapse
No luck Maybe something like FleksyKeyboardService? Other keyboards have that in their line, though i tried it and it didnt work. I will try again. Any more ideas?
fer2503 said:
I think that the problem is the /.Fleksy...maybe you can try /.Fleksy.kb or /.Fleksykb
Click to expand...
Click to collapse
Yep it doesnt work. Btw can you post photos of your Smartwatch with this keyboard?
Lasiu said:
Yep it doesnt work. Btw can you post photos of your Smartwatch with this keyboard?
Click to expand...
Click to collapse
+1 I would like to see as well
Lasiu said:
Yep it doesnt work. Btw can you post photos of your Smartwatch with this keyboard?
Click to expand...
Click to collapse
Yes i can make a photo and post it to you. It is too small but it works
yyeah a picture would be cool

I've rooted Fire OS 6.2.7.3 on Firestick 4K

Hi folks, I had a Firestick 4k Fire OS 6.2.7.1 with Wolf Launcher and all was bliss. The OS got updated to 6.2.7.3 and that broke the Home button. I tried all I could find from scouring the XDA forums but nothing worked for me (accessibility apps, adb commands...) The Home key, as well as reboot, always return to the Amazon stock UI. I really miss the Home button returning to the Wolf launcher, as well as long-press of the Home button to get to Network settings because I often switch between my VPN router and normal router. Anyway, I got totally pissed at all the failed attempts and took a chance on rooting the Firestick 4K with Fire OS 6.2.7.3 to see what I could do. I hadn't seen anyone else mention that it could be done on 6.2.7.3, but I can indeed confirm that I was able to do it without issue following the very good 3 part video beginning with this->one (thank you Paul Jones), which begins by showing you how to dismantle the FS4K in order to short it and proceed with the unlocking of the device. It really was not that difficult. Now I have a rooted device with TWRP and Magisk installed and with many possibilities for customization.
I did delete the Amazon home screen (optional in video #3) and when I hit the Home button, it simply went to a blank screen. As I now have root access, with ES File Explorer I was then able to edit the keylayout file for the Amazon remote (/system/usr/keylayout/Vendor_0171_Product_0413.kl) to remap the HOME key to act as a BACK key and that solved that problem, but caused another. If the device went to sleep, I had to reboot the stick because the stock long-press Home button to get to Apps no longer worked. The fix to that was simply to disable sleep mode with ADB (settings put secure sleep_timeout 0). So now, I'm basically to where I was with 6.2.7.1 and the Wolf launcher booting up with the help of FTVLaunchX but now with root access. There's no more Amazon home screen or Amazon app store to get to, however I can still install Amazon apps via the Amazon website to my device. I can also install from a myriad of other sources like Aptoide TV, Downloader...
I still miss being able to long-press the Home button with the Wolf launcher in order to get to Network settings. I've tried all kinds of key mapping apps but none seem to work on Firestick 4K with OS 6.2.7.3. Does anyone know of a key mapping program that actually works with Firestick 4K OS 6.2.7.3? I run Button Mapper no problem on another Android TV OS device but Button Mapper installed on the FS4K does not recognize any key input from the FS4k remote. Its accessibility settings are setup properly but still no joy. Does anyone have Button Mapper working on a FS4k? If so, was there anything special required to get it working? Or, does anyone know where to map events based on key presses defined in the keylayout file?
Alternatively, does anyone know how to create a shortcut on the Wolf Launcher desktop that will allow me to map to the Network settings page? I think you can create shortcuts via ES File Explorer, but I don't know where the Network settings executable is. I know I can just get there with a few clicks via the new Fire TV settings icon, but that's no fun. It would be so much cooler to be able to create shortcuts to specific settings pages or whatever...
I also thought about some kind of wifi widget but the Wolf launcher doesn't allow widgets. ATV Launcher 1.5 does allow widgets but not sure if that works on FS4K.
Sorry for the long post but I'm eager to learn and would appreciate any help or suggestions.
You can try my root Settings replacement.
NewSettingsRoot.apk
https://forum.xda-developers.com/showpost.php?p=82368799&postcount=1
Boot twrp.
adb shell mount -o rw /system
adb push NewSettingsRoot.apk /sdcard/NewSettingsRoot.apk
adb shell "mkdir /system/priv-app/NewSettingsRoot/"
adb shell "chmod 0775 /system/priv-app/NewSettingsRoot/"
adb shell "chown root:root /system/priv-app/NewSettingsRoot/"
adb shell "cp /sdcard/NewSettingsRoot.apk /system/priv-app/NewSettingsRoot/NewSettingsRoot.apk"
adb shell "chmod 644 /system/priv-app/NewSettingsRoot/NewSettingsRoot.apk"
adb shell reboot
Vendor_0171_Product_0413.kl from 6.2.7.1 attached.
0815hoffi said:
You can try my root Settings replacement.
NewSettingsRoot.apk
https://forum.xda-developers.com/showpost.php?p=82368799&postcount=1
Boot twrp.
adb shell mount -o rw /system
adb push NewSettingsRoot.apk /sdcard/NewSettingsRoot.apk
adb shell "mkdir /system/priv-app/NewSettingsRoot/"
adb shell "chmod 0775 /system/priv-app/NewSettingsRoot/"
adb shell "chown root:root /system/priv-app/NewSettingsRoot/"
adb shell "cp /sdcard/NewSettingsRoot.apk /system/priv-app/NewSettingsRoot/NewSettingsRoot.apk"
adb shell "chmod 644 /system/priv-app/NewSettingsRoot/NewSettingsRoot.apk"
adb shell reboot
Vendor_0171_Product_0413.kl from 6.2.7.1 attached.
Click to expand...
Click to collapse
Hi 0815hoffi, I have already done that as part of removing the Amazon Home screen. What I am trying to get at is how to achieve long-press Home to get directly to wifi settings, like the Wolf launcher did before it was broken. You can't put in key values in the .kl file to do events. It only contains a value for each key on the remote. Events are coded somewhere else, do you know where that is? Unfortunately, I can't get any button mappers to work on firestick. The other alternative is to find a way to create shortcuts on the main Wolf desktop to get right to the Network settings screen. Is there a way to do that?
In the new settings, where it says to factory reset, do you know if that keeps root and simply wipes the OS clean or does it really factory reset and remove root? Also, what about checking for updates, will that remove root as well? Just curious...
Thanks
NewSettings only launcher the Parts of the original Amazon Settings.
Only Magisk can be Lost, but TWRP is still there.
So if it lost, reflash magisk.zip
---------- Post added at 03:09 PM ---------- Previous post was at 03:06 PM ----------
#!/bin/sh
su -c am start -a com.amazon.device.settings.action.ADD_NETWORK -n com.amazon.tv.settings.v2/.tv.network.NetworkActivity
---------- Post added at 03:11 PM ---------- Previous post was at 03:09 PM ----------
https://www.google.com/url?sa=t&sou...BMAB6BAgNEAI&usg=AOvVaw1uM2ngLobEuN8uCqybAqNt
Can create shortcuts.
Needs busybox
https://forum.xda-developers.com/attachment.php?attachmentid=5023241&d=1590005330
Thanks, I will give that a try when I get a chance.
0815hoffi said:
NewSettings only launcher the Parts of the original Amazon Settings.
Only Magisk can be Lost, but TWRP is still there.
So if it lost, reflash magisk.zip
---------- Post added at 03:09 PM ---------- Previous post was at 03:06 PM ----------
#!/bin/sh
su -c am start -a com.amazon.device.settings.action.ADD_NETWORK -n com.amazon.tv.settings.v2/.tv.network.NetworkActivity
---------- Post added at 03:11 PM ---------- Previous post was at 03:09 PM ----------
https://www.google.com/url?sa=t&sou...BMAB6BAgNEAI&usg=AOvVaw1uM2ngLobEuN8uCqybAqNt
Can create shortcuts.
Needs busybox
https://forum.xda-developers.com/attachment.php?attachmentid=5023241&d=1590005330
Click to expand...
Click to collapse
Hi 0815hoffi, the "su -c am start -a com.amazon.device.settings.action.ADD_NETWORK -n com.amazon.tv.settings.v2/.tv.network.NetworkActivity" command works perfectly in remote adb and opens up the Network settings screen just like I want, but I can't get any shortcut on Wolf desktop to work. I don't know much about programming apk but I tried the "hello world" beginner apk tutorial and was able to save that to my FS4K Wolf desktop. All I really want is the "hello world" apk, but instead of opening a screen with "hello world", on click I would like it to run your script and open the Network settings screen. I don't have enough expertise to be able to program that one line command into an apk. Any help would be appreciated. Thanks again for all your help.
seems like a mess I think i'll stay on 6.2.7.1 as i run magisk and xposed without any issues.
kick60 said:
Hi 0815hoffi, the "su -c am start -a com.amazon.device.settings.action.ADD_NETWORK -n com.amazon.tv.settings.v2/.tv.network.NetworkActivity" command works perfectly in remote adb and opens up the Network settings screen just like I want, but I can't get any shortcut on Wolf desktop to work. I don't know much about programming apk but I tried the "hello world" beginner apk tutorial and was able to save that to my FS4K Wolf desktop. All I really want is the "hello world" apk, but instead of opening a screen with "hello world", on click I would like it to run your script and open the Network settings screen. I don't have enough expertise to be able to program that one line command into an apk. Any help would be appreciated. Thanks again for all your help.
Click to expand...
Click to collapse
Here a Link to a older Version off my Settings.apk and also the SourceCode as Zip.
This Settings.apk makes many Shortcuts on your Launcher.
Shortcuts you dont need must be hidden in Launcher.
https://forum.xda-developers.com/showpost.php?p=82289861&postcount=1
Maybe that is what you want.
0815hoffi said:
Here a Link to a older Version off my Settings.apk and also the SourceCode as Zip.
This Settings.apk makes many Shortcuts on your Launcher.
Shortcuts you dont need must be hidden in Launcher.
https://forum.xda-developers.com/showpost.php?p=82289861&postcount=1
Maybe that is what you want.
Click to expand...
Click to collapse
Hi again 0815hoffi, I installed the settings.apk and even though I get all the icons on the desktop, they all open the same FireTV Settings page with all options e.g. Sleep, Display & Sound, Network... and the focus is always on the Sleep option. I do want all the icons, but I actually want them to open the correct settings page. For example, when I click on the Wifi icon, I want it to open the Network tab of the FireTV Settings automatically (like running su -c am start -a com.amazon.device.settings.action.ADD_NETWORK -n com.amazon.tv.settings.v2/.tv.network.NetworkActivity) and not see the FireTV Settings page at all. Mayby this has something to do with having previously installed the most recent NewSettingsRoot.apk that just has the one icon and just opens the FireTV Settings page. I manually deleted the NewSettingsRoot directory from /system/priv-data and uninstalled the settings.apk, re-booted and re-installed the settings.apk and still all icons open the same FireTV Settings page.
Is there something else I need to do. I'm so close to what I want to accomplish. Thanks again.
You must allow root access.
Try to delete Wolf Launcher Data and Cache .
0815hoffi said:
You must allow root access.
Try to delete Wolf Launcher Data and Cache .
Click to expand...
Click to collapse
Still no luck and have allowed root access and cleared Wolf Launcher Data and Cache. Each settings icon still boots the same FireTV settings page.
Not sure what to try next. I will try to find a way of putting my network.sh script file on the Wolf desktop somehow and try to find a way to launch it.
Thanks for your help.
SH Script Runner
Can create shortcuts for sh Scripts.
0815hoffi said:
SH Script Runner
Can create shortcuts for sh Scripts.
Click to expand...
Click to collapse
Yes you had mentioned that in an earlier post and I downloaded it but couldn't get it to work properly. I will try it again. If I still have issues, I will let you know. Thanks
kick60 said:
Yes you had mentioned that in an earlier post and I downloaded it but couldn't get it to work properly. I will try it again. If I still have issues, I will let you know. Thanks
Click to expand...
Click to collapse
I can customize my settings for you.
But i am currently in Holliday.
So i can do it in around 10 days if you can wait.
0815hoffi said:
I can customize my settings for you.
But i am currently in Holliday.
So i can do it in around 10 days if you can wait.
Click to expand...
Click to collapse
Sure, that would be fantastic. Thanks
0815hoffi said:
I can customize my settings for you.
But i am currently in Holliday.
So i can do it in around 10 days if you can wait.
Click to expand...
Click to collapse
Hi again 0815hoffi, hope you are enjoying your holiday. You no longer need to customize that app for me. The curious in me couldn't wait and so I downloaded Android Studio to see what I could do and I finally have a working app that makes a shortcut on my screen that launches the shell command to bring up Network settings. I don't know much about Android apk coding (although I do have programming experience) and likely broke a few Android programming "rules" but I did manage to make it do exactly what I wanted, and that is to have an icon on my desktop that directly launches Network settings. This app also could easily be modified to create a shortcut on the desktop and run any shell command.
I've successfully run this apk on my rooted Firestick 4K with the Wolf launcher desktop and it is only designed to run the Amazon Firestick 4K specific com.amazon.device.settings.action command that you sent me. After installation, you will have to grant root access.
I've attached the apk and zipped source code. Feel free to provide any feedback and thanks for all your help.
kick60 said:
Hi again 0815hoffi, hope you are enjoying your holiday. You no longer need to customize that app for me. The curious in me couldn't wait and so I downloaded Android Studio to see what I could do and I finally have a working app that makes a shortcut on my screen that launches the shell command to bring up Network settings. I don't know much about Android apk coding (although I do have programming experience) and likely broke a few Android programming "rules" but I did manage to make it do exactly what I wanted, and that is to have an icon on my desktop that directly launches Network settings. This app also could easily be modified to create a shortcut on the desktop and run any shell command.
I've successfully run this apk on my rooted Firestick 4K with the Wolf launcher desktop and it is only designed to run the Amazon Firestick 4K specific com.amazon.device.settings.action command that you sent me. After installation, you will have to grant root access.
I've attached the apk and zipped source code. Feel free to provide any feedback and thanks for all your help.
Click to expand...
Click to collapse
?
My code is not perfect either.
It has to work, nothing else matters.
?
kick60 said:
Hi folks, I had a Firestick 4k Fire OS 6.2.7.1 with Wolf Launcher and all was bliss. The OS got updated to 6.2.7.3 and that broke the Home button. I tried all I could find from scouring the XDA forums but nothing worked for me (accessibility apps, adb commands...) The Home key, as well as reboot, always return to the Amazon stock UI. I really miss the Home button returning to the Wolf launcher, as well as long-press of the Home button to get to Network settings because I often switch between my VPN router and normal router. Anyway, I got totally pissed at all the failed attempts and took a chance on rooting the Firestick 4K with Fire OS 6.2.7.3 to see what I could do. I hadn't seen anyone else mention that it could be done on 6.2.7.3, but I can indeed confirm that I was able to do it without issue following the very good 3 part video beginning with this->one (thank you Paul Jones), which begins by showing you how to dismantle the FS4K in order to short it and proceed with the unlocking of the device. It really was not that difficult. Now I have a rooted device with TWRP and Magisk installed and with many possibilities for customization.
I did delete the Amazon home screen (optional in video #3) and when I hit the Home button, it simply went to a blank screen. As I now have root access, with ES File Explorer I was then able to edit the keylayout file for the Amazon remote (/system/usr/keylayout/Vendor_0171_Product_0413.kl) to remap the HOME key to act as a BACK key and that solved that problem, but caused another. If the device went to sleep, I had to reboot the stick because the stock long-press Home button to get to Apps no longer worked. The fix to that was simply to disable sleep mode with ADB (settings put secure sleep_timeout 0). So now, I'm basically to where I was with 6.2.7.1 and the Wolf launcher booting up with the help of FTVLaunchX but now with root access. There's no more Amazon home screen or Amazon app store to get to, however I can still install Amazon apps via the Amazon website to my device. I can also install from a myriad of other sources like Aptoide TV, Downloader...
I still miss being able to long-press the Home button with the Wolf launcher in order to get to Network settings. I've tried all kinds of key mapping apps but none seem to work on Firestick 4K with OS 6.2.7.3. Does anyone know of a key mapping program that actually works with Firestick 4K OS 6.2.7.3? I run Button Mapper no problem on another Android TV OS device but Button Mapper installed on the FS4K does not recognize any key input from the FS4k remote. Its accessibility settings are setup properly but still no joy. Does anyone have Button Mapper working on a FS4k? If so, was there anything special required to get it working? Or, does anyone know where to map events based on key presses defined in the keylayout file?
Alternatively, does anyone know how to create a shortcut on the Wolf Launcher desktop that will allow me to map to the Network settings page? I think you can create shortcuts via ES File Explorer, but I don't know where the Network settings executable is. I know I can just get there with a few clicks via the new Fire TV settings icon, but that's no fun. It would be so much cooler to be able to create shortcuts to specific settings pages or whatever...
I also thought about some kind of wifi widget but the Wolf launcher doesn't allow widgets. ATV Launcher 1.5 does allow widgets but not sure if that works on FS4K.
Sorry for the long post but I'm eager to learn and would appreciate any help or suggestions.
Click to expand...
Click to collapse
I have successfully followed your lead and rooted my 4K 6.2.7.3! I have root, magisk and twrp working.
How do i replace the launcher and make Wolf Launcher default?!
yurividal said:
I have successfully followed your lead and rooted my 4K 6.2.7.3! I have root, magisk and twrp working.
How do i replace the launcher and make Wolf Launcher default?!
Click to expand...
Click to collapse
It's all in the "Unlock and Root a Firestick 4K - Part 3" by Paul Jones. I connect using the iso like the Part 2 video as that worked flawlessly. At about the 45 second mark of the video, it tells you where to download the files and how to go about it.
If one's primary focus is getting a custom launcher working with the Home button (e.g. with FTVLaunchX), would I be able to flash rbox's pre-rooted 6.2.7.1 image via TWRP on top of stock 6.2.7.3 after unlocking with kamakiri?
I'm asking because I'm one of the unlucky people who forgot to block updates and had my unrooted stick update to 6.2.7.3.

Categories

Resources