[Q] Force USB recharging resets - Galaxy Tab 10.1 Q&A, Help & Troubleshooting

I enabled the force usb charging, but everytime I reboot the tab, it defaults back to off. Is there a way change the file so that it stays default as on?

mrhazey said:
I enabled the force usb charging, but everytime I reboot the tab, it defaults back to off. Is there a way change the file so that it stays default as on?
Click to expand...
Click to collapse
There's a Script somewhere that you can run to force usb charging. Scripts can be set to run automatically on startup so your issue would not occur.

I use terminal emulator to run the script from the tab itself. Takes like thirty seconds so the not sticking after reboot doesn't really bother me. If you search pershoots thread he outlined a way to use his watchmedia script to make it stick.

Thanks. I ended up using scriptmanager to create a script and set it to run on boot. Works good.

Related

use GScript Lite to view bootanimation?

Hey gang,
I am trying to create a script (using GScript Lite) that will preview the boot animation currently loaded. I am running 2.1 leak v3 and don't have root yet. I made a script with only one line like this: "adb shell bootanimation" and saved it. When I try to run the script I get the "permission denied" error. I guess I need root to run the command locally on the phone. Odd though.... because I can run the command from my computer connected via USB and it works just fine. Can anyone explain why its not working locally when I run the script? Surely it does not trigger root access when running this command from a computer.... does it?
Curious....
Also, is there another way around this so I can accomplish previewing the boot animation on my phone without external input? I searched the market and installed the app called "Boot Animation Preview Lite". It required AndExplorer to be installed to work.... but it never did actually work. Only Force Closes on every attempt.
synaptyc said:
Hey gang,
I am trying to create a script (using GScript Lite) that will preview the boot animation currently loaded. I am running 2.1 leak v3 and don't have root yet. I made a script with only one line like this: "adb shell bootanimation" and saved it. When I try to run the script I get the "permission denied" error. I guess I need root to run the command locally on the phone. Odd though.... because I can run the command from my computer connected via USB and it works just fine. Can anyone explain why its not working locally when I run the script? Surely it does not trigger root access when running this command from a computer.... does it?
Curious....
Also, is there another way around this so I can accomplish previewing the boot animation on my phone without external input? I searched the market and installed the app called "Boot Animation Preview Lite". It required AndExplorer to be installed to work.... but it never did actually work. Only Force Closes on every attempt.
Click to expand...
Click to collapse
Have you tried
Code:
adb shell bootanimation
I doubt it needs root to be run but that will show you the boot animation and it will keep looping until you stop the command which on windows is control C
lol.... did you even read my post?
rofl
synaptyc said:
lol.... did you even read my post?
rofl
Click to expand...
Click to collapse
Lol probably not...
when running it from the phone where is it running from?
also if you are running it from phone it doesn't need the adb shell part
it should be
Code:
bootanimation
^^ I tried this from a terminal but it doesn't work unless I give the terminal su privilages.
so there might not be a way to do this on the phone without root privilages.
Sorry I couldn't be any help.
Its all good t2noob. Thnx for the info... food for thought.
Time to write an app for that =)
results so far:
I created a GScript called "bootscreen" (because I am using a bootscreen with sound and not a "bootanimation.zip"
I checked 'Needs SU?' because I now have root
Then I added the line: bootanimation
All goes well, and I can see/hear my bootscreen BUT I can't end it.
It continually loops like it is supposed to.
Can anyone tell me how to kill the bootanimation once it has been called via GScript Lite?
Things I have tried:
hitting the BACK, HOME, MENU, END/OFF buttons. really every button on the phone.
tapping the place on the screen where I have a "QuitIt" widget that will kill all running apps
The phone will accept screen input because I can tap where certain apps are and tell that they are launching. IE: phone, music player, etc.
I was even able to reboot the phone using Quick Boot just because I knew where the on-screen buttons were to make it reboot.
There seems to be no way to kill the bootanimation except to pull the battery.
Maybe I could create a GScrpit that will kill it, then just know where it is on the screen behind the animation?
Any tips?
EDIT: I created a script like this but it still didn't kill the bootanimation (it did run correctly with the sleep thing though)
Code:
bootanimation
sleep 10
pkill bootanimation
pkill boot1.gif
pkill boot2.gif
This is how I've done it through gscrip:
Code:
TIMEOUT=20
( bootanimation & sleep
$TIMEOUT; kill $! 2>/dev/null )
you can change the timeout duration to suit your liking (it's in seconds).
Regards,
Yahya

temp root, autostarts and adfree

So I've gpt temp root working pretty reliably, it's usually only good for one action at a time but it's a start.
I installed autostarts and disabled backup assistant from starting "after startup" and it's stuck through reboots. I'm wondering if we disable the right process if it'll stop whatever it is that killing temp root.
Also, does anyone have any clue on how to get adfree working? Even if I could adb the host file and just not reboot I'd be happy.
Extract this host file and try adb pushing it to /system/etc/ while you have temp root.
Have not tried it but it probably won't stay after reboot and not sure it will work without rebooting but worth a try.
I have yet to have temp root just stop unless I reboot the system only issue is once wireless tether is turned on I cant turn it off unless I kill the process.

Installing BMM 0.3.0f

I am trying to install BMM 0.3.0f so I can install CM10.1, but it is not working.
WhirlEyes' instructions are to download it to the sdcard, unzip, and run install.bat. When I run Terminal and try to execute install.bat it says Permision denied. Well I am su # and permissions on the file are 750. I # chmod 777 install.bat and it seems to have worked, but I ls -al and the permissions are unchanged, and I still get the error.
Has anyone been able to install this?
And BTW, now that BMM is shut down, do you suppose that SafeStrap could ever possibly be as good?
Personally I hope that, if WhirlEyes no longer wants to mess with it, that he will pass along all the goodies to someone who does. It took up alot of his time and he is tired now, so pass it along to someone who has the time.
First, make sure you have the correct Driver installed. Enable USB Debugging and start the bat. On your RazR you'll see Super User pop up to ask for Root rights. Allow it and it should work flawless.
Sent from my XT890
Well it sounds like you're saying do it from the PeeCee. I've been trying to do this on the phone.
# adb devices
... doesn't see it when the phone is regular running. I rebooted to fastboot mode, and still it is not seen, although on the phone it says USB Connected. I do have USB Debugging On.
I can't believe there aren't any directions on this, even in the BMM thread. (now dead)
Edit: Well I've figured out that adb will only recognize the phone when plugged into the RIGHT side of this Elitebook.
So now I tried to execute install.bat again, but still Permission Denied. I thought maybe it was the way I unzipped the saveset before (with Thunar), so this time I did it on the commandline. Same problem. So I resorted to executing each of the install.bat commands by hand, and all was fine until I got to:
# adb shell "su -c 'cp /tmp/bootmenu.prop /system/etc/bmm/conf/bootmenu.prop'"
bootmenu.prop is not in /tmp. Maybe this is my old setup file for BMM 2.6.7 (or whatever it was). I don't know why it's not there, and I'm afraid to do anything on the phone until I get some kind of confirmation. Can anyone advise?
Well I took a chance and rebooted, and to my surprise I am now running the new BMM on boot.
But when the phone comes up in MIUI, the 0.2.7 app is still installed, so I removed it. There is absolutely no apk anywhere in the zip file. I tried Boot to Recovery|SystemKeeper|InstallBMM, but that doesn't work.
Again, there is no next step.
Also there seems to be a radio updater, but better not touch that as different radios in different parts of the world.
Maybe I just have to learn friggin' SafeStrap.
Nobody has the 0.3.0f app installed? How do you set up the image for second boot?
There's no App for 0.3.0f!
After rebooting your Device you'll see the Hijack showing the different Rom Slots. At the bottom is an tab called settings. Hit it. After that select System 3 (System 2 got an issue with the Cache Partition)
Now you'll see 2 tabs. First select the left (Partitions) and create all 3 (System / Data / Cache) You can choose the size of the Partitions, to fit your needs. I usually set 500mb for System / 1000mb for Apps / 500mb for Cache)
After you have done that go back and select the right tab (boot options)
Uncheck all boxes.
Now if you decide to flash CM10/Aokp, set the 2nd init. If you 'll flash MiUi or Stock based Roms, select nothing.
If you wanna use the HotplugXtreme Overclock Modul on your Rom select the OC.
If you flash KeXec select 2nd init and KeXec.
Ok, now the System 3 is prepared to flash. Go back to the Main Screen and select the Recovery. When you're in there, switch System to System 3 (Stock System is always colored RED!) So if the tabs are red you mess around with your Stock Rom.
After you switched the System, just flash the Rom as usual.
During Reboot hit System 3 and you' ll boot into it (Default boot is Stock System)
Sent from my XT910
Is this allocating space on the internal sdcard? Is it possible to set it to the external one? My internal sdcard is fairly full.
It looks like it is creating a file for system, cache, and apps which are mounted in loopback?
Edit:
Well I was able to boot to the third slot once...
Then I booted to the first slot, and then back to the third and this time it's locked up. I have the green Android with gears, red LED, and the last entry is ... Booting.
Stuck for an hour. No phone. I guess I have to wait for the battery to die. Worried to try this again.
..
Now I have CM10.1 installed to the third slot and it boots. But it is not finding my Titanium backups from the first slot. How do you transfer backups from the first slot to the third? Is the third just a file that's mounted loopback?
OK I guess this isn't going to work. Nobody else here is doing this, and for the second time my phone is locked up on the geared-Android Booting screen. I have to wait hours for the battery to run down with the phone off the air, and I just can not do this anymore.
Sticking with regular boot image.

How I was able tether without root

Following the instructions from this post (except don't rebook at the end) https://forum.xda-developers.com/showpost.php?p=61736387&postcount=15 I was able to successfully tether on the LG G6 h871. The data flows from phone to whatever wifi device smoothly.
The thing I'm still working on is that the changes don't persist if the phone turns off. The settings reset when the phone is restarted. Anyone know how to make the changes stick?
Thanks!
Here's a brief update.
You can actually make these settings from within your phone, instead of through the ADB command, which is useful in case you suffer an inadvertant reboot while in the field. Still haven't been able to make the settings persist through reboot however.
Taken from here https://forum.xda-developers.com/att-lg-v10/help/activate-hotspot-unlocked-lg-v10-t3585697
You use the Settings Database Editor and find these entries in there (you have to find the one in both the System and Global tables).
The setting in Global table "tether_dun_required 0" is protected and won't let you edit it.
You can change this using ADB, and fortunately granting these permissions is a one time process that does persist through normal reboots. https://forum.xda-developers.com/tm...settings-database-editor-tweaks-t3609876/amp/
"adb shell"
"pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS" (check this command against the text the app pops up when you try to change the protected setting)
"reboot"
Now you are able to go into the Settings Database Editor app and modify these two settings
Global table "tether_dun_required 0"
System table "tether_entitlement_check_state 0"
And viola you will have a working wifi hotspot on your unrooted stock phone. Hopefully I can figure out a way to make these changes stick through reboots though, because it is a bit of a hassle to click through the app anytime it reboots, but at least it works, and it's certainly better than the popping out your sim card trick and trying to time shoving it back in just at the right moment during the wifi hotspot creation trick.
I used to use this trick but tried the other day and while I was able to connect to the hotspot I could not get internet on any device. Anyone else notice this.
Is this issue specific to the h871 / AT&T? On h870 (carrier free) you can just enable it in settings...
Worked very well for me, thanks! Did you get around these settings stick after reboot?

Razer Phone 2 soft bricked after applying GPS Joystick GPS disabler

I have a Razer Phone 2 rooted with magisk. I use GPS Joystick. I decided to select the "disable system GPS" setting in its options. I rebooted as the app requested and now my phone loads to the point where it wants me to enter my pin and I see my wallpaper for a split second then the screen goes black and it loads up the status bar about ever 10 seconds for a split second then it repeats. Like it is stuck in a loop. After a couple minutes phone reboots and I get this message...
Android Recovery
razer/chery12/aura
9/P-MR1-RC003-RZR-190305/3110
user/release-keys
Use volume up/down and power
Can't load Android system. Your data may be corrupt. If you continue to get this message, you may need to perform a factory data reset and erase all user data stored on this device.
Try again
Factory data reset
Click to expand...
Click to collapse
So I reached out to the dev of GPS Joystick and he explains that the option disables the location services called "fused location provider" and I have to re-enable it to fix the problem. He sent me a post here explaining that I need to pull an .xml file from the phone, change the code, and push it back. Simple right? Well maybe if I have TWRP, but I don't. I can however boot into the phones recovery options and there is an option there to "apply update from adb" but I cannot seem to pull anything using that interface. My Windows computer recognizes the device using Minimal ADB and Fastboot but it shows it as a whole bunch of numbers then the word "sideload" which I guess is a limited form of adb just for side loading? Maybe someone could make me a script that I can sideload that changes the file back to normal? Here is the code from the dev of GPS Jostick that is used to disable and enable the fused lcoation provider.
It calls this code to disable:
ComponentName component = new ComponentName("com.android.location.fused", "com.android.location.fused.FusedLocationService");
getActivity().getPackageManager().setComponentEnabledSetting(component, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 0);
And similar code to re-enable it:
ComponentName component = new ComponentName("com.android.location.fused", "com.android.location.fused.FusedLocationService");
getActivity().getPackageManager().setComponentEnabledSetting(component, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 0);
Click to expand...
Click to collapse
So my question is, can I pull this /data/system/users/0/package-restrictions.xml file from my phone and push it back without using TWRP? But instead using the phones recovery option and its various selections? I'd prefer to exhaust the resources to recover the phone since I have spent weeks personalizing it. I am not fluent in adb but I am hoping someone can throw some ideas or even a solution at me that I am missing. All I got to do is pull a file, change a word, push it back and reboot. I can't imagine there isn't a way to do this by just using what the phone has to offer. Any help would be greatly appreciated.
Another idea that came to mind is in its current condition could I install TWRP? Is fastboot an option at this point? Maybe if I can flash TWRP in its current state I can then make the appropriate modifications.
I ended up fixing the problem. I installed arter97's kernel that had TWRP baked into it. I then used TWRP to copy over the .xml file, change the code as mentioned above, and then copied it back to the phone. Problem solved. It is amazing how one simple word in a .xml file can prevent a phone from functioning properly. It simply amazes me.

Categories

Resources