[Guide] Add WiFiHotspot Toggle to any rooted Touchwiz Rom - Verizon Galaxy Note 3 General

This method doesn't require purchasing any app. It does require the use of sqlite3 in /system/xbin/. As well as terminal emulator from the play store. This will work for both 4.3 and 4.4 roms.
First if you don't already have terminal emulator installed install it now.
https://play.google.com/store/apps/details?id=jackpal.androidterm
Open up the terminal emulator and type in sqlite3 if the prompt doesn't change to sqlite> then you need to install sqlite3.
To install sqlite3: install sqlite installer root from the play store.
https://play.google.com/store/apps/details?id=ptSoft.util.sqlite3forroot
Open the program, press install, and allow root permissions. Once the installation is complete go ahead and Uninstall the sqlite installer app.
Open terminal emulator back up and copy paste in the following:
su
Allow the permissions... copy in:
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
Your prompt should change to sqlite>
At this point if you don't have any custom toggles in your rom you can just copy and paste the below into terminal emulator. If you're not sure or if you do then you can get your current value(see end of post) and add WiFiHotspot; to the end of it using the syntax below.
update system set value='Wifi;MobileData;Location;Bluetooth;AutoRotate;SilentMode;Sync;Ebook;AirplaneMode;DrivingMode;AllShareCast;MultiWindow;SmartStay;PowerSaving;SBeam;Nfc;AirView;AirGesture;SmartPause;SmartScroll;DormantMode;WiFiHotspot;' where name='notification_panel_active_app_list';
After you update the value exit sqlite using:
.quit
You should now be able to add the WiFiHotspot Toggle in settings under display> notification panel.
To query your current value use the following command:
select * from system where name='notification_panel_active_app_list';
You should see something like the below returned. (Long pressing and using select text will copy whatever text you select.)
4034|notification_panel_active_app_list|Wifi;MobileData;Location;Bluetooth;AutoRotate;SilentMode;Sync;WiFiHotspot;Ebook;AirplaneMode;AllShareCast;MultiWindow;SmartStay;PowerSaving;SBeam;Nfc;AirView;AirGesture;SmartPause;SmartScroll;DormantMode;DrivingMode;
You'll need to copy from after the | to the end and add WiFiHotspot; to the end for the update command shown above.
Thanks to jbeitel for the original guide here:
http://forum.xda-developers.com/showthread.php?t=2483258
Sent from my SM-N900V using Tapatalk

Related

Eclipse Android - add superuser permission

Hi, i'm trying to access /system/app/ so i can put apps in there, since i couldt figure out how to install apk files form Eclipse. I'm running Eclipse with the SDK installed, any help or example would be awesome. Thanks
/system is typically read-only (is on every android I know of). On many (most?) devices, the partition containing /system is also write-locked in the eMMC firmware. User apps should be installed into the /data partition.
What do you mean by installing from eclipse? Eclipse uses adb to push the package to the device and launch the package installer.
Please use the Q&A Forum for questions Thanks
Moving to Q&A
There are two ways that may be of help that I know of.
ADB Install:
1. In your Android SDK manager you should have a tool called ADB (Google how to add it to your system path to make life easier)
2. Navigate to your apk file you are trying to install and shift right click in the windows explorer windo and select Open Command line here.
3. then using command line (Console) type in:
Code:
adb install nameofapphere.apk
Note: If the app has spaces in the installer name either take out the spaces or add quotes to the command line as shown below.
Code:
adb install "name of app here.apk"
Second choice is gaining command line root and remounting the system directory with rw permissions.
1. Gain console root access.
2. in console type in:
Code:
adb shell
Note if you see $ you are not in root and # if you are in root.
3. (Please double check)
Code:
mount -o remount,rw /dev/null /system
This will remount your system drive so you have read/write access to it.
4. Push the file to /system/app
5. Set the permissions you want for the application
JavaChips said:
There are two ways that may be of help that I know of.
ADB Install:
1. In your Android SDK manager you should have a tool called ADB (Google how to add it to your system path to make life easier)
2. Navigate to your apk file you are trying to install and shift right click in the windows explorer windo and select Open Command line here.
3. then using command line (Console) type in:
Code:
adb install nameofapphere.apk
Note: If the app has spaces in the installer name either take out the spaces or add quotes to the command line as shown below.
Code:
adb install "name of app here.apk"
Second choice is gaining command line root and remounting the system directory with rw permissions.
1. Gain console root access.
2. in console type in:
Code:
adb shell
Note if you see $ you are not in root and # if you are in root.
3. (Please double check)
Code:
mount -o remount,rw /dev/null /system
This will remount your system drive so you have read/write access to it.
4. Push the file to /system/app
5. Set the permissions you want for the application
Click to expand...
Click to collapse
What i mean i'm writing an app in eclipse. And i have a listview with the apk's, i want when the user clicks on the items, it gets installed. Any ideas?
spxc said:
What i mean i'm writing an app in eclipse. And i have a listview with the apk's, i want when the user clicks on the items, it gets installed. Any ideas?
Click to expand...
Click to collapse
Why did this thread get moved. Took me forever to find it.
Anyway, it seems you want to programmatically install an APK from within an android app, is that correct? Just launch an intent with the package installer as a target:
Code:
Intent installIntent = new Intent(Intent.ACTION_VIEW);
installIntent.setDataAndType("/path/to/my/apk","application/vnd.android.package-archive");
startActivity(installIntent);
Moderator: this is definitely development related. Why was it moved to Q&A?
Gene Poole said:
Code:
Intent installIntent = new Intent(Intent.ACTION_VIEW);
installIntent.setDataAndType("/path/to/my/apk","application/vnd.android.package-archive");
startActivity(installIntent);
Moderator: this is definitely development related. Why was it moved to Q&A?
Click to expand...
Click to collapse
I'll agree, and secondly I think it was moved to Q&A because the original question was asked in a way that was not clear to it's intents.
So yeah, just pointing the apks to be run by the package installer via intent will launch the installer and install the app selected.

[SOLUTION][GUIDE]Running *.sh file without problem

This thread will help those who are struggling with running the scripts.
Try to clean up the code first - check for errors/bugs, update it!!
You need to root your phone.
First method:
To change permissions use chmod 0755 script.sh
as android/busybox chmod binary does not uses the chmod +x or chmod a+x notation and make sure that su binary is installed i.e phone is rooted
Second method:
Also you must have Busy Box Installed.
Here is the link to Google Play of that busybox app: https://play.google.com/store/apps/details?id=com.jrummy.busybox.installer
Don't install the few latest versions because it is in nightlies.
I use Samsung Galaxy Y and I use the version 1.18.2.
Reboot your phone after installation.
Also you must have script manager installed.
Here is the link to Google Play of that manager app: https://play.google.com/store/apps/details?id=os.tools.scriptmanager
Open Script Manager and give super user access.
Tap on Menu > Advanced Options > Config
Scroll down until you see Browse as Root
Tap on it and press the back button to save
Once again grant Script Manager SuperUser Access to save config
Exit Script Manager
Now again open Script Manager and browse for your script file (name_of_the_script.sh)
Tap on it and set properties to:
Favorites (Star Icon)
Root (Green Android Skull Icon)
After setting properties, tap on Run to execute the script installer.
When executed, it will do initial test, be patient and wait for it to complete its tasks.
If it shows errors that your phone is not rooted and the app doesn't have root permissions, then,
Sometimes, some methods are better than using terminal.
Download a root checker app from the play store and check whether your phone is really rooted.
If no, try to root again by following tutorials on xda.
If yes, update su binaries.
Also go to settings / preferences of superuser app, and click automatic response and then select 'allow'.
If you want to get yourself with terminal emulator commands, then see the following link
http://forum.xda-developers.com/showthread.php?t=1979909
If you are trying to copy a script from sdcard to internal memory, you can do that in three ways AFAIK:
copy the file via terminal
copy the file via file manager apps
copy by making a edify script and flashing it
If you are trying to run a script, you can do that in two ways AFAIK:
copy the file via terminal
copy by making a edify script and flashing it
Download Android Terminal Emulator from Google Play: https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en
Goto Preferences in terminal and select Initial Command and enter "su" and save it
Also Change the terminal type to "linux" when you are using linux type commands.
Press thanks if I have helped.
I just want to tell you, I also have SGY and Busybox version 1.21.0 and 1.20.x work fine.
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
can you plz try to run this script!!
https://www.dropbox.com/s/8atidhjswrts7qe/yamas.sh

Minami M-750 stuck on boot - need expert help

Hi, I have been using Rom toolbox Lite for a while now and never had a problem, untill I got the "not so great" idea to change the heapsize in build.prop - after reboot the tablet is stuck on Loading - screenshot http://imageshack.com/a/img924/2306/BJbCT1.png
I have tried to reset, reset to factory default, to push back an old build.prop by ADB from prompt, tried the same from QtADB(0.8.0(newer 32bit not availble) - seems I have full access to all folders), even tried modifying the build.prop as root and start QtADB as root then copy it back - nothing has helped.
I have a complete backup(rom dump) made with uberizer, but since I'm not using windows anymore but instead Peach OSI(heavily modified Xubuntu). I'm not really sure what to do now.
My Minami M-750 DualCore A20(allwinner) tablets info is uploaded at specdevice long time ago as I were trying to find others with the same tablet:
http://specdevice.com/showspec.php?id=e5ba-9ce5-0033-c58700000000
It doesn't have custom Rom or custom recovery, but do have an option in recovery to update from external storage(where I can access internal sdcard and external sd) - update from ADB - update from cache.
Anyone have any suggestions?
With kind regards
JBJ
EDIT: Thanks to this article below the problem is now solved.
Note: Step 1 . instead of Eclipse ADT download SDK command line tools https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
Follow this guide on how to install the SDK: https://androidonlinux.wordpress.com/2013/05/12/setting-up-adb-on-linux/
Step 3. Open a Terminal and shoot this command: —–Note: The “Android” in the command is the folder in which we extracted the SDK in.
cd ~/Android/sdk/platform-tools/
Edit build.prop using ADB
by Louis Matthijssen · July 26, 2014
There are many reasons why you may like to edit your build.prop file. I always edit it in order to lower my DPI, resulting in a bigger looking screen.
You can edit it on the device itself using a file manager or a build.prop editor but it may be more convenient to edit the file using a PC.
Please note that your device has to be rooted to edit the build.prop file.
Download and unzip the Eclipse ADT
Make sure your device has USB debugging enabled
Open a command prompt or terminal and cd to the platform-tools directory:
cd C:\adt-bundle-windows\sdk\platform-tools
Check if your device is recognized:
If it’s not you may install the Google USB driver and try again
adb devices
The device may ask you if the computer is trusted, choose yes
Restart ADB as root:
adb root
Remount /system as rw (read-write):
adb remount
Download build.prop to your pc:
adb pull /system/build.prop
Now you can edit build.prop using your favorite editor
Important: use a plain text editor! I recommend Notepad++ for Windows and Geany for Linux
Upload build.prop to your device:
adb push build.prop /system/build.prop
Fix permissions:
adb shell chmod 644 /system/build.prop
Reboot your device:
adb reboot

Blu Vivo 5 Multi-window view

You'll either need root or a custom recovery to do this, but as not everyone wants root.
1. Here's how you do it with TWRP, a USB cable, and a PC with ADB:
2. Root (easiest method)
Method 1
Boot your device into recovery
2. Mount your system by going to Mounts > Tick System
3. On your PC open a command line, somewhere like your desktop is useful
4. Type the following command:
HTML Code:
adb pull /system/build.prop
5. Open the build.prop file with your favourite editor, I recommend using Notepad++ on Windows
6. Find the "ro.build.type" line
7. Change the text after = to "userdebug" from "user"
8. Save the file in Notepad
9. Go back to the command line and enter the following command:
HTML Code:
adb push build.prop /system/
10. Now open a shell doing:
HTML Code:
adb shell
11. Now a adb shell will open, enter these commands:
HTML Code:
cd system
THEN
chmod 644 build.prop
12. Reboot the device as normal
13. When the device has booted, go to the developer options
14. Scroll down to the bottom of the "Drawing" category
15. Enable multi-window and have some fun!
METHOD 2 -Root
This is the easiest way
1. Go to google Play Store
2. Find BuildProp Editor by JRummy Apps and install
3. In the app, locate Ro.Build.type
4. Change "user" to "userdebug"
5. Then Reboot from the App (normal reboot)
6. Go to developer options, scroll down until you see enable multi window view
Good Luck
All credit to Quinny899
Can you provide a screenshot? I don't want to do anything that might possibly damage my device.
Can confirm that this works!
I have just tried it.

can i install apk from terminal emulator without root ?

hi guys
can i install apk from terminal emulator without root ?
i used more then command like adb commands but no one's work
i need a method to install apk from terminal emulator on android "without root"
thanks for all
I don't know if this will do what you're looking for but it worth a look.
https://play.google.com/store/apps/details?id=burrows.apps.busybox&hl=en_GB
Just in case link not show:
BusyBox Installer (No Root)
BusyBox for Non-Rooted devices adds the power of BusyBox to your phone without Root!
How to use BusyBox Non-Root:
- Step 1: Click on "Install" button to download BusyBox!
- Step 2: Click on "Open Terminal" button!
- Step 3: Paste the command you have already copied in Step 2 in the Terminal!
RUN THIS APPLICATION BEFORE THE TERMINAL EMULATOR
Required:
- Android Terminal Emulator Application
Add PATH to Emulator:
- In Terminal Emulator -> Preferences -> Initial command: "export PATH=$PATH:/data/data/burrows.apps.busybox/app_busybox/; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/data/burrows.apps.busybox/app_busybox/"
BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc.
BusyBox is maintained by Denys Vlasenko, and licensed under the GNU GENERAL PUBLIC LICENSE version 2.
Provided extra Binaries:
bash, rsync, scp, sqlite3, ssh,wget and more!

Categories

Resources