USB Charging Script for Charging Hubs - Moto G4 Plus Questions & Answers

Will it safely work on Moto?
Copied from
You can use script to charge it from USB.!!!
1. Tab must be Rooted!!!
2. Make new .txt file (USB Charging Script.txt) and fill inside following:
Code:
#!/system/bin/sh
su
echo 1 > /sys/class/power_supply/battery/force_usb_charging
3. Put file inside SD-card.
4. Download SManager (not from Play Market, from different place!) and install it.
5. Open Script Manager - > select your script -> check "Run as root", "Run on Boot", "Run"
6. When ask root permissions -> Enable
7. Enjoy!!! Now you tab always must charge from USB (also from car charger, 100% true, I use it!-)))
Click to expand...
Click to collapse

Related

Install non-market apps without File Manager: Possible?

Simply put is there a way to get an app onto my phone without the market or file manager?
I ask because I want to use Haykuro's G build but I cant download any apps. I do however have all the ones I use regularly backed up onto my SD card but I cant access them without a File Manager (which I cant download to use). Is there a way?
|Spike|
There's always the option of using AppsInstaller/APKInstaller and putting APK's onto your SD Card. Though, to install AppsInstaller, you have to install it through ADB.
Unicornasaurus said:
There's always the option of using AppsInstaller/APKInstaller and putting APK's onto your SD Card. Though, to install AppsInstaller, you have to install it through ADB.
Click to expand...
Click to collapse
How do I install thru ADB?
|Spike|
Get the android usb drivers, adb.exe and adbwinapi.dll from an Android SDK. Plug the Dream in via USB and point to the location of the drivers when it is installed. Then open your command line, navigate to whatever folder adb.exe is in and type adb install <full path to the apk>. If you run Linux hopefully you can figure it out on your own based on the steps above.
Alternately, upload all the apks you want to the internet somewhere. Check the box to enable installation from Non-market sources in the system settings, then type the full URL of the apk into the browser. The package installer will take over from there.
Here's how you do it. Assuming your G1 is rooted
1. Download the attched files, and copy them into your \system32 folder (Start > Run > %systemroot%\system32)
2. Sure your G1 is enabled for USB Debugging (Settings > Applications > Development > USB debugging) and that your G1 has the appropriate drivers installed. If not, download the USB drivers from HERE
3. Plug your G1 into your computer (Make sure you have USB 2.0 - Click here to find out how to check). When your G1 says "USB Connected" DO NOT click "Mount"..don't do anything
4a. Vista users - Follow these steps. For XP Users, skip to step 5
4b. On your computer, browse to the directory where the APK for your file is located
4c. Once located, hold SHIFT and right click on a blank area of the folder
4d. Click on "Open Command Window Here"
4e. Type "adb install nameofyourapkhere.apk" - without the quotes.
4f. It might say something like "daemon service not started" or something, but it will start it and continue. It'll then say something like 626k/1293k bla bla bla
4g. If it was successful, it will just say "Success". You can close the command window and SHAZAM! Your program will now be installed on your G1, and you can access it like any other program on your phone
5. XP Users - Follow these directions:
a) You can either go Start > Run > type CMD and press enter
OR
Windows Key + R > type CMD and press enter
Navigate to your APK file via the command prompt. For easy usage, put your APK file on your desktop. That way all you have to do is type "CD Desktop" into the command prompt
b)Type "adb install nameofyourapkhere.apk"
c)You may get a couple of messages like in the steps for Vista users
d)If all goes well, you too will get the success message
e)Enjoy your application!
Any confusions, let me know. Hope it helps, and Good Luck!
I've been using a local web server and the android browser.
untermensch:
Thats a possibility, but oddly enough, that requires a http-server
AGx-07_162:
With unicornasaurus's method above, you can install all the apk's you want... you can install apkinstaller and use that through that method, but you can just aswell install your apk's directly through it
I ran into the same problem. Here is the easiest ways to get the appinstaller on your G1. Download this file from your g1 browser or Gmail yourself this file, and download.
http://www.mediafire.com/?egy0mop2qqx

[HOW TO] enable non market apps

I don't know about you, but SuperOneClick's Allow Non Market Apps feature didn't work for me. When I went to setting>applications there was no check box for Unknown sources present. I got it by using Root Explorer and SQLight Editor (both on the market)
1. Use "RootExplorer" take you to
/data/data/com.motorola.android.providers.settings/databases/settings.db/settings
2. click on the "Value" colum of "force_only_market_apps"
3. Press "menu" button and select "Edit Field"
4. Change "1" to "0", then save.
Without even doing a factory reset or just a regular reboot you should have an unknown sources box available in your settings>applications.
That's not how it works. When you use the option in SuperOneClick, it enables that option for you, even if it doesn't show up in settings>applications.
Thanks. When using SuperOneClick I was able to root, but I wan't able to allow Unknown Sources through Settings->Applications.
Now it works!
thanks, sideloading didnt work for me using aroot.
i rooted using SOC a while ago, and DLed the official PSN apk yesterday since it's not on the US market, and installed it by clicking the apk in file manager with no problem.
Thank you so much! This finally worked! Using aRoot/GladEnable/SuperOneClick , all of them SAID it was enabled but it clearly wasn't ... when I navigated to the db field it was still at '1' .. thanks for this, finally it's working
i am on gingerblur, and when clicking the menu button i don't get a dialog to do anything. Maybe a bug of the theme?
So i can't use root explorer to do this, but anyway this is useful since now i know the database name and can do it by hand...
For those that want to do this by hand:
-connect your phone via usb, enable usb debugging
-from a command line, go where you have adb installed (android sdk or many scripts on this forum)
-run adb shell, then su. accept the message on the phone if prompted.
-type: sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db "UPDATE settings SET value=0 WHERE name='force_only_market_apps';" then enter, and you are done
franciscojavierleon said:
For those that want to do this by hand:
-connect your phone via usb, enable usb debugging
-from a command line, go where you have adb installed (android sdk or many scripts on this forum)
-run adb shell, then su. accept the message on the phone if prompted.
-type: sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db "UPDATE settings SET value=0 WHERE name='force_only_market_apps';" then enter, and you are done
Click to expand...
Click to collapse
I tried this and it did not work just said sqlite3 not found. Type exit and type exit then type sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db "UPDATE settings SET value=0 WHERE name='force_only_market_apps';" it just locked up terminal. If I type sqlite3 before adb shell it finds it.
Used root explorer and copied settings.db to sdcard. Once there used as a disk drive on computer. Edited it with navcat for sqlite and saved it. Then disconnected it for computer used root explorer and copied it back to data and overwrote existing file. Rebooted and all was fine.
I did everything, but I am not able to edit the field...
"Thanks
manpreet14 said:
I did everything, but I am not able to edit the field...
"Thanks
Click to expand...
Click to collapse
thanks much
i got it
BravoMotorola said:
I don't know about you, but SuperOneClick's Allow Non Market Apps feature didn't work for me. When I went to setting>applications there was no check box for Unknown sources present. I got it by using Root Explorer and SQLight Editor (both on the market)
1. Use "RootExplorer" take you to
/data/data/com.motorola.android.providers.settings/databases/settings.db/settings
2. click on the "Value" colum of "force_only_market_apps"
3. Press "menu" button and select "Edit Field"
4. Change "1" to "0", then save.
Without even doing a factory reset or just a regular reboot you should have an unknown sources box available in your settings>applications.
Click to expand...
Click to collapse
Thanx. Very useful info.
Worked for me.
Thanks
Works Great. Thank you!
is there a way to enable side loading with out rooting the phone?
aszrael1266 said:
is there a way to enable side loading with out rooting the phone?
Click to expand...
Click to collapse
sideload wonder machine. look it up. pretty easy.
BravoMotorola said:
I don't know about you, but SuperOneClick's Allow Non Market Apps feature didn't work for me. When I went to setting>applications there was no check box for Unknown sources present. I got it by using Root Explorer and SQLight Editor (both on the market)
1. Use "RootExplorer" take you to
/data/data/com.motorola.android.providers.settings/databases/settings.db/settings
2. click on the "Value" colum of "force_only_market_apps"
3. Press "menu" button and select "Edit Field"
4. Change "1" to "0", then save.
Without even doing a factory reset or just a regular reboot you should have an unknown sources box available in your settings>applications.
Click to expand...
Click to collapse
Thanks for this instruction...
Even though this thread is a little old it did help me and therefore want to add my two cents worth to possible help others who may be having issues. I have a rooted Motorola Flipside.
I purchased SQL Lite Editor from the market and was able to change the value directly in it. Here's how:
1. Download and install SQL Lite Editor from the market.
2. Start SQL Lite Editor to display a list of the applications installed on your device.
3. Look for the application titled Settings Storage (and in smaller print underneath it will display "com.motorola.android.providers.settings".
4. Select Settings.db.
5. Select Settings.
6. In the list of columns scroll down to item #70, "force_only_market_apps" and select it.
7. Click the shortcut menu on your device and select Edit Record.
8. Change the value from 1 to 0 then save and exit SQL Lite Editor.
9. Go to Settings > Applications. Unknown Sources will be visible and you will be able to check it.
Hope this helps anyone else who has issues.
Regards,
Greg
franciscojavierleon said:
For those that want to do this by hand:
-connect your phone via usb, enable usb debugging
-from a command line, go where you have adb installed (android sdk or many scripts on this forum)
-run adb shell, then su. accept the message on the phone if prompted.
-type: sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db "UPDATE settings SET value=0 WHERE name='force_only_market_apps';" then enter, and you are done
Click to expand...
Click to collapse
You are awesome buddy.. thanx

Galaxy SII I9100 - xterm on the phone

For lots of reasons, I wanted to have xterm on my phone and interact with
it that way. Maybe someone else will find this useful as well. It's simply
a collection of bits from a Linaro alip in a tarball.
Phone prerequisites:
1. Root
2. bash & tar
3. A terminal emulator or adb
4. ES File Explorer to make things easy
PC prerequisites:
1. X-Window server
Steps:
On PC:
1. Start X-Window server. On my PC I use X-Ming
2. Tell X-Ming to allow incoming connections. If you are on a private network,
update it's command line to add -ac, which would allow all connections, btw.
3. Obtain PC's IP address
4. You will probably have to tell your PC firewall to let the X port through.
On phone:
1. Place the tar on the phone
2. Via terminal emulator or adb, su to become root
3. cd /data/local
4. mkdir ub (or whatever you want)
5. cd ub (or whatever you made)
6. move or copy the tar "here" (ub)
7. gunzip and untar the tar
8. With ES File Explorer go to Settings and make /system writeable
9. ln -s /data/local/ub/lib /
10. ln -s /data/local/ub/usr /
11. ES File Explorer and make /system read-only again
12. exit the su to relinquish root
13. Turn phone WiFi on
14. cd /data/local/ub (or whatever you called it)
15. ./x <Your PC's IP Address>
Notes:
1. This is a non-paranoid and bare bones xterm. If you wish a security wrapper, add it,
and otherwise alter it to your needs. It will complain about "locale not supported".
That's just a warning.
2. You will have to do 8 to 11 above after each re-boot. But you can turn that into
"push-button" simplicity with something like GScript from the market.
3. When the phone goes to sleep you may notice a significant lag in character echo.
This is the phone doing it. Wake it up.
Xming command and desktop snapshots show it running.

USB Charging Script for Charging Hubs

Will it safely work on Moto?
Copied from
You can use script to charge it from USB.!!!
1. Tab must be Rooted!!!
2. Make new .txt file (USB Charging Script.txt) and fill inside following:
Code:
#!/system/bin/sh
su
echo 1 > /sys/class/power_supply/battery/force_usb_charging
3. Put file inside SD-card.
4. Download SManager (not from Play Market, from different place!) and install it.
5. Open Script Manager - > select your script -> check "Run as root", "Run on Boot", "Run"
6. When ask root permissions -> Enable
7. Enjoy!!! Now you tab always must charge from USB (also from car charger, 100% true, I use it!-)))
Click to expand...
Click to collapse

An easy way to get Multitouch for Cypress

Instructions(from Readme.txt)
Code:
1) Connect the phone (USB debugging mode must be enabled in the phone)
2) Turn on USB debugging mode: Settings - Apps - Development - USB Debugging
3) Run the Install.part.1.cmd from the place, where you have unpacked the archive
4) In the place where you have just unpacked the archive open the file: hw_config.sh with notepad and add at the very beginning of the lines:
# Cypress dualtouch
insmod /system/lib/modules/ax8mt.ko
9) Click save button in notepad and run Install.part.2.cmd
10) Disconnect the cable from the phone and enjoy.
By ULumia (Alexey Popov)
Most of the thanks go to the creator of this thread
I just created a handy script

Categories

Resources