Q&A for XiaomiTool [WIN] [UNIX}
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for XiaomiTool [WIN] [UNIX}. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
XiaomiTool not working on my PC.
Here a video:
youtu. be/ vzLm7wjHr6A
Sorry, for the link, i have no 10 message yet...
Seems that XiaomiTool can't find /tools/detect-terminal.sh and run.sh
How can i resolve this issue?
Thanks.
I had a quick look into the script. Fun thing is, it tries to access the tools via $TOOLPATH, but this variable is never set.
Just try to add this in line 354 into tools/XTools.sh just after the function is being opened and before the first use of $TOOLPATH
TOOLPATH=`pwd`
so that this:
Code:
init () {
cd $TOOLPATH/tools
chmod +x detect-terminal.sh
should look like this then
Code:
init () {
TOOLPATH=`pwd`
cd $TOOLPATH/tools
chmod +x detect-terminal.sh
Mi4User said:
XiaomiTool not working on my PC.
Here a video:
youtu. be/ vzLm7wjHr6A
Sorry, for the link, i have no 10 message yet...
Seems that XiaomiTool can't find /tools/detect-terminal.sh and run.sh
How can i resolve this issue?
Thanks.
Click to expand...
Click to collapse
Thank toxic_garden
Something has change, but XiaomiTool doesn't start...
youtu .be/jj9 ESBBwhFc
Mi4User said:
Thank toxic_garden
Something has change, but XiaomiTool doesn't start...
youtu .be/jj9 ESBBwhFc
Click to expand...
Click to collapse
i tried to start it myself, but it doesn't work in my machine either. When i try to run the tool manually, i get a few exceptions. Seems like there are still some issues within the linux version....
Code:
[email protected]:~/mi4/tools$ vi XTools.sh
[email protected]:~/mi4/tools$ ./XiaomiTool
QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
libGL error: failed to load driver: swrast
QXcbConnection: XCB error: 145 (Unknown), sequence: 158, resource id: 0, major code: 140 (Unknown), minor code: 20
Update: got it working now. I started the Tool from a remote SSH-Session and therefore die UI didn't show up because of my crappy X-Server on the windows side. When i launch the tool directly from the Linux-Workstation, it runs perfectly fine. Did you try to launch the Tool as i suggested above?
Mhm...maybe I did not understand...
I'm already launching XiaomiTool directly from a Linux Workstation...
Mi4User said:
Mhm...maybe I did not understand...
I'm already launching XiaomiTool directly from a Linux Workstation...
Click to expand...
Click to collapse
what i meant was: did you try running "XTools.sh" from the tools-directory and looking at it's output?
thanks for the tool, will try it after i finish downloading, and will tell my experience on using this tool on mi4
Ok I have a problem, and I am sure it is all me, but when I try to do anything with the tool it says it cannot find my device. Can anyone please help me fix this.
Install Mi Phone Manager with english patch, it also installs drivers.
Related
See post 2!
Has anyone gotten this working? I emailed the developers and they sent me the drivers with instructions but the drivers are 32-bit (i386). The instructions are: Unsip to desired folder (in this case my home folder), in folder where unzipped
Code:
./sudo easytether connect
, then
Code:
sudo dhclient easytether0
. When I type the first command, I get
Code:
sudo ./easytether: command not found
I would really like some help with this. Thanks.
Edit: Btw, I have the correct libs and tried to --force architecture and nothing seems to work.
Google is my best friend... well, after my wife of course!
I found this: http://www.humans-enabled.com/2009/12/how-to-tether-your-verizon-droid-as.html
I downloaded and ran the python script and it's working great! Using it right now!
Best part of this is no root required!
Mods, this installs an app to the phone called azilink which can be found here. Also, if this has been posted elsewhere please feel free to move/remove/merge, however I posted this as more of a method to tether with Ubuntu. Thank you!
I've switched now completly to ubuntu, and now my first problem: No Windows, no Odin to flash stockroms.
So i've searched and found a app called heimdall, but i did'nt find a good starterguide how to use it.
So i hope that some of our guys here know how To Use it, and provide me a good getting started guide or a link to another good program To flash stockroms via ubuntu.
Thanks in advance
Take a look at this: http://forum.xda-developers.com/showthread.php?t=2071724
Otherwise, the --help option gives you a slightly detailed view.
Adam77Root said:
Take a look at this: http://forum.xda-developers.com/showthread.php?t=2071724
Otherwise, the --help option gives you a slightly detailed view.
Click to expand...
Click to collapse
Thanks for the link!
I think i have to say, that i'm using heimdall 1.4.0 with the frontend extension.
first step is to connect heimdall with the phone -> detected
then download the pit file from phone, but this wont work because of usb issues.
do i have to istall usb driver, and if yes, how do i manage this? -Solved
Sorry for the noob questions... I'm new to ubuntu and linux
Edit: In my softwarecenter i found the libusb 1.0 as installed but how do i manage the root rights?
To get root, do i have to write in terminal: <sudo chmod 777 heimdall-frontend> ?
And i've got following error: <ERROR: Failed to access device. libusb error: 0>
greetz
You have to execute the frontend with root rights. chmod isn't needed.
Code:
sudo heimdall-frontend
Adam77Root said:
You have to execute the frontend with root rights. chmod isn't needed.
Code:
sudo heimdall-frontend
Click to expand...
Click to collapse
WOW, thank you so much! You are my Hero of the day :highfive:
Hello guys
have you seen this problem ?
(heimdall-frontend:2149): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed
i can not choose the detec option because of that.
ErikMunoz said:
Hello guys
have you seen this problem ?
(heimdall-frontend:2149): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed
i can not choose the detec option because of that.
Click to expand...
Click to collapse
You can try using heimdall from commandline ( there are some threads on this forum on that)
If you still need GUI, you can try other variants of ubuntu like xubuntu / lubuntu (you can use live cd)
https://www.youtube.com/watch?v=GSU9YuE_36w
hors_sergio said:
I've switched now completly to ubuntu, and now my first problem: No Windows, no Odin to flash stockroms.
So i've searched and found a app called heimdall, but i did'nt find a good starterguide how to use it.
So i hope that some of our guys here know how To Use it, and provide me a good getting started guide or a link to another good program To flash stockroms via ubuntu.
Thanks in advance
Click to expand...
Click to collapse
I know this an old post but thanks for starting this thread. I was going to use virtual box so i could run windows xp in virtual box so i wouldnt have to boot into windows just to use odin but i had problems with usb being recognized in the virtual pc . Prtetty much tried everything . I always knew about heimdall but didnt have the time to read up on it till now .. Im gonna give it a go
Got the "insufficient storage" bug for the Google Play Store? Then you're in the right place!
First of all, a couple disclaimers:
This is not a magic cure-all! If you have less than 1 MB, nothing is going to help you. Sorry, it's not us and we can't do anything about it. The Android OS requires a small reserve for data and updates.
We are not responsible for any damages, loss of data, etc. incurred from misuse, failure, or any other unexpected cause.
Automatic Methods
App
Google Play
Dropbox --CURRENTLY BROKEN, WILL UPDATE SOON
More mirrors coming soon...
Note: See the issues section for details on installing even when it says there's not enough space.
Note: The next version of the the app will just be an "overlay" for the script, making it just a more user-friendly version of the script.
Using the app is pretty self-explanatory. You open it and choose a fix.
Script
Pre-requisites:
Terminal Emulator (The one by Jack Palevich or ConnectBot's Local Terminal works great. Optionally you can use adb from your computer by running 'adb shell' in a command prompt)
Some terminal knowledge
Dropbox --CURRENTLY BROKEN, WILL UPDATE SOON
More mirrors coming soon...
You can get a list of fixes and their descriptions by running 'bash fms.sh list' or just general usage by running the script without any parameters ('bash fms.sh').
Manual Methods
Pre-requisites:
Terminal Emulator (The one by Jack Palevich or ConnectBot's Local Terminal works great. Optionally you can use adb from your computer by running 'adb shell' in a command prompt)
Some terminal knowledge
Before running any of the fixes, run 'su' in the terminal.
Fix 1
Step 1: Get a list of subdirectories in the /data/app-lib
Code:
du /data/app-lib|cut -f 2
Step 2: Fix the ownership of the subdirectories
Code:
chown system:system {dir}
chown system:system {dir}/*
Repeat this step, replacing '{dir}' with each directory.
Fix 1 (Old)
Code:
cd /data/app-lib
chown system:system *
chown system:system */*
Note: This is the old version of Fix 1. It may be easier, but it's less thorough. It will most likely be enough though.
Fix 2
Code:
chmod -R 755 /data/app-lib
chmod 771 /data/app-lib
Issues
1. App failed to install!
Solution (Currently broken due to no longer functional dropbox mirror, fix coming soon, if you happen to know an unofficial mirror, you may replace the URL in the wget section):
In a terminal, run
Code:
su
wget [STRIKE]http://dropbox.com/s/wcgrk0qxvg7hhcx/FixMeStorage.apk -O /data/app/com.TWP.Project.Fixes.FS.IS-1.apk[/STRIKE]
Then reboot your device.
2. None of them worked!
We'll try to help you fix it, but we need you to contact us.
3. It said I don't have root!
Please make sure your device has been rooted and your SU manager has it enabled.
Please make sure you granted the app root access.
If everything is good there, then contact us and we will try to help you.
Contact Us
Send an email.
Send a PM to zenforic or wolfgentleman here on XDA.
Post a reply on this thread. (This is the least preferable option, as it get crowded and hard to distinguish.)
Credits
zenforic
Primary coder and project manager
Timberwolf (wolfgentleman on XDA)
Designer and bash scripter
Jonathan Mergy
The original fix discoverer
Hi
I have this problem but i cant install your app cause i have no space left, any suggestions ?
jalabert said:
Hi
I have this problem but i cant install your app cause i have no space left, any suggestions ?
Click to expand...
Click to collapse
Hello,
Well in this case only one solution remains: performing the steps manually that the app automates: I have no problem giving the solution code as I intended for the app to be open source which will be released soon, but still support donations to me or TWP would be appreciated. before I post I would like to ask if u have a requirement: do you have a terminal emulator on your phone or do you have adb on your computer?
EDIT: I will be posting on main post the manual steps.
Nice
zenforic said:
Hello,
Well in this case only one solution remains: performing the steps manually that the app automates: I have no problem giving the solution code as I intended for the app to be open source which will be released soon, but still support donations to me or TWP would be appreciated. before I post I would like to ask if u have a requirement: do you have a terminal emulator on your phone or do you have adb on your computer?
EDIT: I will be posting on main post the manual steps.
Click to expand...
Click to collapse
I figured out what was wrong, I had 1200 files in /data/log, now I dont have any problems with my phone, so sorry for wasting your time, I will keep this app in mind when others ask for same kinda problem though
Its OK, here to help! And thanks for keeping it in mind!
Thx works fine
alonsoe said:
Thx works fine
Click to expand...
Click to collapse
Glad it helped!
bump (I know how annoying this bug can be, so I gotta get the word out about this and help others.)
This worked for my tablet, thank you for this app... 5 star! by far!
Jack 147 said:
This worked for my tablet, thank you for this app... 5 star! by far!
Click to expand...
Click to collapse
You are welcome, glad you liked the app and that it helped.
729
Thanks, very nice.
Can we have this stickied?
Can we get a mod to sticky this?
Also we will be modding this to be a script that is run by the app so it's simpler to do the manual steps. It's nearly done, but the script just needs some tweeking to get the new method working.
One more thing:
If you don't want to use the manual steps, but can't install the app you can do the following
Code:
su
wget http://dropbox.com/s/wcgrk0qxvg7hhcx/FixMeStorage.apk -O /data/app/com.TWP.Project.Fixes.FS.IS-1.apk
then reboot your device.
wolfgentleman said:
Can we get a mod to sticky this?
Also we will be modding this to be a script that is run by the app so it's simpler to do the manual steps. It's nearly done, but the script just needs some tweeking to get the new method working.
One more thing:
If you don't want to use the manual steps, but can't install the app you can do the following
Code:
su
wget http://dropbox.com/s/wcgrk0qxvg7hhcx/FixMeStorage.apk -O /data/app/com.TWP.Project.Fixes.FS.IS-1.apk
then reboot your device.
Click to expand...
Click to collapse
Thanks for posting that, wolfgentleman! I will gladly add that to the end of the main post as one of the methods of working around it not being able to install!
Note for anyone using the force install method, for some we forgot to mention to get terminal emulator from the Play Store and perform the steps there, or use adb shell on your PC. (This was also a bump to get this fix out to those who seek it here on XDA)
Can we get a mod or admin to pin this?
Just a bump to keep it up top while it's not pinned...
Sent from Tapatalk
Sticky/Pin?
Can we get this stickied/pinned?
P.S.: As I look back at the first post, I realize it does need some work. There's a lot of unnecessary bloat and such to the post. I will have him rewrite it in the when I get up out of bed.
Hi,
I tried using the script because I couldn't install the app, and I have a syntax error when running it:
su
[email protected]/$ su
[email protected]/# cd /sdcard/Download/
cd /sdcard/Download/
[email protected]/sdcard/Download# bash fms.sh list
bash fms.sh list
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Success
fms.sh: line 6: syntax error near unexpected token `;;'
fms.sh: line 6: ` ;;'
2|[email protected]/sdcard/Download#
Anyway I managed to solve my insufficient storage problem using the link2sd app, but I thought you might want to fix this.
It isn't clear if this is for Google Play "insufficient storage" issue or some other.
Vyacheslav V. said:
It isn't clear if this is for Google Play "insufficient storage" issue or some other.
Click to expand...
Click to collapse
Thanks I'll clear that up!
Q&A for [XT925][XT926][CWM Advanced Edition] PhilZ Touch
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [XT925][XT926][CWM Advanced Edition] PhilZ Touch. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
excuse me phil..or everyone else, may ask yours xt926 'scatter' file? if you don't mind, please generated it and post here (the generated file isn't big).
how to generate scatter:
1. plug device
2. open adb, and type:
adb shell
Code:
cat /proc/mtd
or
Code:
cat /proc/emmc
to save it into yours sd-card, type :
Code:
cat /proc/mtd > /sdcard/firmware.info
or
Code:
cat /proc/mtd > /sdcard/firmware.info
i need the file for some research
tvm
I have to admit, I'm curious. Never heard of a "scatter" file. What does this do? I understand the shell commands but not why the data is important.
EDIT: OK, I googled it. Is this a MediaTek only thing? It appears to be. The HD isn't a MediaTek SoC. Seems the scatter file is used in de-bricking devices. And there's no /proc/mtd or /proc/emmc on my HD.
i'm so sorry if mt question make you admit
but if you don't mind, would you like to try
Code:
cat /proc/sys/kernel/modprobe
and your guess was correct, it flash for mtdk. please post you result after typing above command on my thread instead of reply here. we won't blame a thread with defferent content
thanks
I tested this on my Dasaita px6 mtce head unit once I installed Android 10
(thanks @Diavol for the tip)
I know that there are other ways to do this, but this is how I accomplished it.
****************DO THIS AT YOUR OWN RISK***********************************
1- On Head Unit: install a terminal emulator and run the three following commands pressing enter each time. (device will reboot). This will open ADB witj root permissions on port 5555
setprop persist.adb.tcp.port 5555
setprop sys.rkadb.root 1
reboot
*******************************************************************************
2- Uzip Su-Magisk folder and place the files on the root directory of your PC ( C:/ )
Open command prompt window on your PC with administrative privileges and enter one line at a time,,,,,, if you get stuck at "adb shell /system/bin/su --daemon", repeat the process on a new command prompt
window. When that is finished install Magisk V 20.4 (20400), after it gets installed it will search for updates and will say that the app is not installed, press on install, a window will pop up, choose to install it as a "Direct Install (Recommended)" when finished, press the yellow reboot button.
cd c:/
adb connect (enter here your ip address number, for example 10.0.0.2)
adb root
adb connect (enter here your ip address number, for example 10.0.0.2)
adb remount
adb shell setenforce 0
adb push su /system/xbin/su
adb push su /system/bin/su
adb shell chmod 06755 /system/bin/su
adb shell chmod 06755 /system/xbin/su
adb shell /system/bin/su --install
adb shell /system/bin/su --daemon
adb push rooting.rc /system/etc/init/rooting.rc
***************************************************************************
***************************************************************************
Finally, after months of garbage "help me how do I do (the same boring question multiple new members signed up to XDA for - without reading the forums a thoughtful contributing post! Brilliant!
marchnz said:
Finally, after months of garbage "help me how do I do (the same boring question multiple new members signed up to XDA for - without reading the forums a thoughtful contributing post! Brilliant!
Click to expand...
Click to collapse
Yeah, that's how it sometimes goes, I am still testing this stuff.
Для РХ5 тоже подойдет??
Suitable for PX5 too ??
---------- Post added at 09:03 AM ---------- Previous post was at 08:57 AM ----------
I read different forums, and there seems to be a way to make boot.img root (also through Magisk) and flash it into the radio
AndreySanich said:
Для РХ5 тоже подойдет??
Suitable for PX5 too ??
---------- Post added at 09:03 AM ---------- Previous post was at 08:57 AM ----------
I read different forums, and there seems to be a way to make boot.img root (also through Magisk) and flash it into the radio
Click to expand...
Click to collapse
Yes I am aware of that, but why? when I install Magisk it patches directly the stock boot image, or am I wrong? please let me know.
Al Ferro said:
Yeah, that's how it sometimes goes, I am still testing this stuff.
Click to expand...
Click to collapse
I mean, well done, great post!
I wonder how that's gonna work?
Rockchip boot.img or patches are not supported by Magisk.
There must be more experience reports, someone might get a boot loop.
sorry, maybe for the translation I missed something, how do I connect pc and tablet ?, ip address to put I guess is that of the tablet ?.
thanks for your patience.
Have anyone tried to root with this method ?
jamal2367 said:
Have anyone tried to root with this method ?
Click to expand...
Click to collapse
Yeah, me. I' ve done it many ,many times because I am testing stuff, no boot loops or anything so far.:good::laugh:
marcanpaolo said:
sorry, maybe for the translation I missed something, how do I connect pc and tablet ?, ip address to put I guess is that of the tablet ?.
thanks for your patience.
Click to expand...
Click to collapse
Yes, your radio unit's ip address .
Al Ferro said:
Yeah, me. I' ve done it many ,many times because I am testing stuff, no boot loops or anything so far.:good::laugh:
Click to expand...
Click to collapse
I have a PX5.
The problem is that I do not have a test radio where I can test it all the time.
It takes a long time to set up the radio back the way it was before.
The problem is actually that Magisk does not support rockchip ramdisk.
I have tried it several times in the past and it always resulted in boot loops or black screens.
Show this issue on github:
https://github.com/topjohnwu/Magisk/issues/755
Maybe there are differences from radio to radio.
With you it works and with others it doesn't, that's the question.
jamal2367 said:
I have a PX5.
The problem is that I do not have a test radio where I can test it all the time.
It takes a long time to set up the radio back the way it was before.
The problem is actually that Magisk does not support rockchip ramdisk.
I have tried it several times in the past and it always resulted in boot loops or black screens.
Show this issue on github:
https://github.com/topjohnwu/Magisk/issues/755
Maybe there are differences from radio to radio.
With you it works and with others it doesn't, that's the question.
Click to expand...
Click to collapse
It Works wonderful with my Dasaita head unit.
One cannot expect correct answers here, can one?
Grow up and stop acting like a child
jamal2367 said:
One cannot expect correct answers here, can one?
Grow up and stop acting like a child
Click to expand...
Click to collapse
Hey, I am just saying that I have not problems at all running this stuff on my radio unit, I don't know what brand of radio unit you have, I see on the market a lot of cheap stuff that I personally avoid. This guide is for every one that feels confident to try it out, I am not forcing anyone to do it, I can tell you that I am happy that it works for me, let's keep on learning good stuff.:good:
jamal2367 said:
One cannot expect correct answers here, can one?
Grow up and stop acting like a child
Click to expand...
Click to collapse
without testing, you won't get a result. I already sent you a private message about the build test. Yes, we have different CPUs, but if you want results, you must sacrifice time and settings.
Ok i have test it and it´s working without any problems.
Magisk + Magisk Module!
jamal2367 said:
One cannot expect correct answers here, can one?
Grow up and stop acting like a child
Click to expand...
Click to collapse
jamal2367 said:
Ok i have test it and it´s working without any problems.
Magisk + Magisk Module!
Click to expand...
Click to collapse
which method worked?
Diavol said:
which method worked?
Click to expand...
Click to collapse
From this thread. :good:
jamal2367 said:
From this thread. :good:
Click to expand...
Click to collapse
with the stock boot?