Hi friends , I found a method on XDA-University on creating ClockWordMod for new device .
Here are some of codes from there ,
make -j4 otatools
Click to expand...
Click to collapse
dump_image boot /sdcard/boot.img
Click to expand...
Click to collapse
. build/envsetup.sh # or # source /build/envsetup.sh
Click to expand...
Click to collapse
HTML:
http://xda-university.com/as-a-developer/porting-clockworkmod-recovery-to-a-new-device
Codes are fine and where does I use it ?
In Windows / Linux ??
If Linux , I am using Windows 7 and How can I use it ? I have Cygwin :good:
Suggest me the method
sabithpkcmnr said:
Hi friends , I found a method on XDA-University on creating ClockWordMod for new device .
Here are some of codes from there ,
HTML:
http://xda-university.com/as-a-developer/porting-clockworkmod-recovery-to-a-new-device
Codes are fine and where does I use it ?
In Windows / Linux ??
If Linux , I am using Windows 7 and How can I use it ? I have Cygwin :good:
Suggest me the method
Click to expand...
Click to collapse
Hello Brother
For Android Development You Need To Use Linux Based OS.
If You Are On Windows You Have 2 Options: Dual Boot or Boot Using Vmware
Ok , I have Cygwin ,,, you all says that it is a linux terminal , wasn't ?
if I have a Linux PC , where should I type it in ? In terminal ?
Related
I am a new to using Linux, I just downloaded the SDK 1.5 and I am having some trouble getting the tools to work properly. For example. If I try to open the emulator it will just sit there and do nothing. I cannot get adb to work either. I set it up / the instructions. Any ideas on what I am missing? Thanks
easiest way to fix the adb problem is to move your adb command that is included in the SDK into your /usr/bin or /bin directory. if you have a problem with either of those then type cd ~/<sdk>/tools followed by ./adb the "./" tells the phone to run the command in the current directory, otherwise you could just type the directory to adb to run it i.e. ~/SDK/tools/adb that's all you need. as far as the emulator i have no idea because i have never gotten it up and running properly
How do I add the ADB command to usr/bin?
You can do as followed:
- Run the Terminal
- cd to your sdk/tools directory
- Run these command:
Code:
#./adb kill-server
#./adb devices
If you see your HTC has been remounted, it's done!
sudo mv ~/sdk/tools/adb /usr/bin/adb
tubaking182 said:
sudo mv ~/sdk/tools/adb /usr/bin/adb
Click to expand...
Click to collapse
Got it thanks for your help! I still can't get the emulator to work. Oh well Thanks again
What version of Linux? Are you using 64 Bit? What is the result of typing
Code:
java -version
You created the AVD, right?
What do you get when you type:
Code:
android list avd
stovenator said:
What version of Linux? Are you using 64 Bit? What is the result of typing
Code:
java -version
Ubuntu version 9.04 & 64 Bit
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
You created the AVD, right?
What do you get when you type:
Code:
android list avd
Click to expand...
Click to collapse
bash: android: command not found
They made a change in 1.5 SDK that you must specifiy the virtual device you want the emulator to run. if you just double click on "emulator", it will print the error to console and exit.
So first cd to the tools directory of the sdk and type android[return]
you will be given the commands that android (the program) will accept. you can also do this for emulator.
Great!! Everything is working well now. Thanks for everyones help!!
How Do I get fastboot working in Ubuntu?
jordanjf86 said:
How Do I get fastboot working in Ubuntu?
Click to expand...
Click to collapse
http://andblogs.net/fastboot/
fastboot is included in the 1.5 sdk, once you get adb working it should start working as well.
billc.cn said:
fastboot is included in the 1.5 sdk, once you get adb working it should start working as well.
Click to expand...
Click to collapse
Actually it doesn't seem to be in the Linux 1.5 SDK; I had to build it. It's in the Windows SDK, though. Kinda weird.
Android SDK 1.5 emulator trouble in windows
hi i m new to xda and to android i m not tech savy
i install sdk 1.5 i try ddms it works good what when i try to lanch emulator nothing happnes and i try by going in command promt im getting this error can any one help me out in this
C:\Documents and Settings\jass>emulator
emulator: ERROR: You did not provide the name of an Android Virtual Device
with the '-avd <name>' option. Read -help-avd for more information.
If you *really* want to *NOT* run an AVD, consider using '-data <file>'
to specify a data partition image file (I hope you know what you're doing).
karan09 said:
hi i m new to xda and to android i m not tech savy
i install sdk 1.5 i try ddms it works good what when i try to lanch emulator nothing happnes and i try by going in command promt im getting this error can any one help me out in this
C:\Documents and Settings\jass>emulator
emulator: ERROR: You did not provide the name of an Android Virtual Device
with the '-avd <name>' option. Read -help-avd for more information.
If you *really* want to *NOT* run an AVD, consider using '-data <file>'
to specify a data partition image file (I hope you know what you're doing).
Click to expand...
Click to collapse
First, this is the wrong thread for such a question. This thread is about SDK issues in Linux, and you're asking about using debugging tools in Windows.
Second, if you say yourself that you are "not tech savvy", then I'm not quite sure why you are wanting to play with the SDK tools. I don't mean this in a derogatory way; I'm just not sure what it is that you're trying to accomplish.
That said, Android dev docs can be found here, and information specifically about the emulator is here.
- Chris
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
hello everybody i try to use last version of FlashTool 0.9.16
but i have problem it refuse to start and give me this error
PHP:
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre32
Java version must be 1.6 or 1.7
i tried to start it with using java 7 and 8 and openjdk
and it still the same error
i'm using lubuntu 14.04Lts
any idea ?
thanks :good:
ahmadzxc said:
hello everybody i try to use last version of FlashTool 0.9.16
but i have problem it refuse to start and give me this error
PHP:
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre32
Java version must be 1.6 or 1.7
i tried to start it with using java 7 and 8 and openjdk
and it still the same error
i'm using lubuntu 14.04Lts
any idea ?
thanks :good:
Click to expand...
Click to collapse
Seems as you had the wrong java version
Checked installation guide?:
Linux version :
Unpack the tar.7z package
Check that libusb-1.0 is installed. On 64bits system, both 64bit and 32bit should be installed.
Add these rules to /etc/udev :
SUBSYSTEM== »usb », ACTION== »add », ATTRS{idVendor}== »0fce », ATTRS{idProduct}== »* », MODE= »0777″
Apply the latest update (each update is cumulative)
Updates will not be functionnal if full 0.9.11.0 is not installed
Disabled Antivirus / firewall?
Here is how to set up Java right --> LINK
i done all that and version 0.9.11 works
but the new one is not work
PHP:
Updates will not be functionnal if full 0.9.11.0 is not installed
i don't understad this ??
ahmadzxc said:
i done all that and version 0.9.11 works
but the new one is not work
PHP:
Updates will not be functionnal if full 0.9.11.0 is not installed
i don't understad this ??
Click to expand...
Click to collapse
For me it means you need "full 0.9.11.0" installed too, if you want run the newer version. Do you need any features provided by the newer flashtool version?
Cumultative means you need every version from 0.9.11 updated to latest build
i want to unlock xperia Z bootloader
and i think it's old
each update is cumulative
Click to expand...
Click to collapse
how i could install it over each other it's only extract the folder
ahmadzxc said:
i want to unlock xperia Z bootloader
and i think it's old
how i could install it over each other it's only extract the folder
Click to expand...
Click to collapse
Does the software have a built in "update" feature?
LS.xD said:
Does the software have a built in "update" feature?
Click to expand...
Click to collapse
No this feature is not avilable
ahmadzxc said:
No this feature is not avilable
Click to expand...
Click to collapse
Have you tried copy all in one folder? Start with the oldest version and end with the newest?
LS.xD said:
Have you tried copy all in one folder? Start with the oldest version and end with the newest?
Click to expand...
Click to collapse
tried and still the same error
ahmadzxc said:
tried and still the same error
Click to expand...
Click to collapse
I'm out of ideas then. Just use another machine to flash your phone or install another os on your machine
ahmadzxc said:
hello everybody i try to use last version of FlashTool 0.9.16
but i have problem it refuse to start and give me this error
PHP:
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre32
Java version must be 1.6 or 1.7
i tried to start it with using java 7 and 8 and openjdk
and it still the same error
i'm using lubuntu 14.04Lts
any idea ?
thanks :good:
Click to expand...
Click to collapse
I had same problem but resolved it like this:
1- Open Nautilus in root mod via
Code:
sudo nautilus
then enter your password
2- Go to \home\username\FlashTool then delete all file of FlashTool folder
3- Download FlashTool 0.9.11.0 HERE then FlashTool 0.9.16.0 HERE
4- Go to Oracle site to download Java 64 Bits HERE
5- Always in root mod in Nautilus go to /usr/local then copy the tar gz file of Java 64 bits then uncompressed it in folder.
6- Once the file uncompressed right click on folder of Java folder and copy to to placed Java Folder in FlashTool folder.
7- Reinstall FlashTool files of 0.9.11.0 version in FlashTool Folder then make the same for FlashTool 0.9.16.0
If all works you will be able to launch the new version.
for me it works
kensama said:
I had same problem but resolved it like this:
1- Open Nautilus in root mod via
Code:
sudo nautilus
then enter your password
2- Go to \home\username\FlashTool then delete all file of FlashTool folder
3- Download FlashTool 0.9.11.0 HERE then FlashTool 0.9.16.0 HERE
4- Go to Oracle site to download Java 64 Bits HERE
5- Always in root mod in Nautilus go to /usr/local then copy the tar gz file of Java 64 bits then uncompressed it in folder.
6- Once the file uncompressed right click on folder of Java folder and copy to to placed Java Folder in FlashTool folder.
7- Reinstall FlashTool files of 0.9.11.0 version in FlashTool Folder then make the same for FlashTool 0.9.16.0
If all works you will be able to launch the new version.
for me it works
Click to expand...
Click to collapse
why java 64 i'm using 32 bit
>?
I had the same problem with Arch Linux. Somehow the Environment variables were not set up correctly.
Then I found this thread and the solution suggested in that thread solved the problem for me.
The part that you need is quoted below:
This will set variable for all user
sudo gedit /etc/profile.d/java.sh
paste if you installed oracle jdk, change accordingly if you are using open jdk
export JDK_HOME=/usr/lib/jvm/java-7-oracle
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
Then in terminal run:
sudo chmod +x /etc/profile.d/java.sh
source /etc/profile.d/java.sh
Click to expand...
Click to collapse
ahmadzxc said:
why java 64 i'm using 32 bit
>?
Click to expand...
Click to collapse
Replace Java 64 bits by Java 32 bits.
I took example on my own and i'm under an AMD Phenom II X6 processor.
Hi,
I've developed an universal & stable temporal root tool for "dirtycow-capable" Android M (and N?), i.e., without the 2016-11-06 patch.
It bypasses selinux via a vdso backdoor inside the init process which is injected by a memory-only dirtycow exploit.
This approach has the following advantages:
Memory-only: does not modify the filesystem
Scalable: easy to add new kernel and/or new devices
Stable: does not affect stability of your device
Reversible: the backdoor is cleared immediately after the root shell ends, which means no reboot is required after usage
Please use version v0.1.1 instead of v0.1 which has a severe bug!
Attention:
By "SELinux bypass" I mean the payload will run in init domian even if SELinux is in enforcing mode, however, a patch to sepolicy is still needed for making init domain unconfined. Usually this means a modified boot image is required.
Details, releases, usage and the source code is available at Github.
Maybe I'll turn it into a SuperSU installer in the future. Donations are welcome.
XDA:DevDB Information
VIKIROOT, Tool/Utility for all devices (see above for details)
Contributors
hyln9
Source Code: https://github.com/hyln9/VIKIROOT
Version Information
Status: Testing
Created 2017-01-20
Last Updated 2017-01-21
Hi, I am working on the LG Tribute HD model LGLS676 and we are looking for an exploit for MM 6.0.1 build MXB48T. is it possible to create a 32-bit version of this exploit? It's exactly what we need right now for a method to gain root as not even temp is not even close to possible, lg has this one airtight. I'm running Ubuntu 16.04.01 64 bit and can help test if needed on my device. Thanks in advance for any help you can or cannot provide ?
Sands207 said:
Hi, I am working on the LG Tribute HD model LGLS676 and we are looking for an exploit for MM 6.0.1 build MXB48T. is it possible to create a 32-bit version of this exploit? It's exactly what we need right now for a method to gain root as not even temp is not even close to possible, lg has this one airtight. I'm running Ubuntu 16.04.01 64 bit and can help test if needed on my device. Thanks in advance for any help you can or cannot provide
Click to expand...
Click to collapse
Thanks for your reply.
Unfortunately, 32-bit vDSO support is not available for Android currently.
hyln9 said:
Thanks for your reply.
Unfortunately, 32-bit vDSO support is not available for Android currently.
Click to expand...
Click to collapse
Could we use a different backdoor/exploit for x86 devices?
AptLogic said:
Could we use a different backdoor/exploit for x86 devices?
Click to expand...
Click to collapse
Great idea, I'll have a try in the emulator.
Hello and thank you for this!
I am stuck and need your help here please... I'm on an LG V10 (H960A) mm, and I think I followed the instructions on GitHub correctly:
1. Extracted the "exploit" binary
2. adb push /data/local/tmp
3. adb shell (cd to /data/local/tmp and made "exploit" executable)
4. Executed the "exploit"
and now I am stuck in "waiting for reverse connect shell". Turning device on/off, toggling Bluetooth etc does nothing... How should I proceed? Thanks in advance!
ftaios said:
Hello and thank you for this!
I am stuck and need your help here please... I'm on an LG V10 (H960A) mm, and I think I followed the instructions on GitHub correctly:
1. Extracted the "exploit" binary
2. adb push /data/local/tmp
3. adb shell (cd to /data/local/tmp and made "exploit" executable)
4. Executed the "exploit"
and now I am stuck in "waiting for reverse connect shell". Turning device on/off, toggling Bluetooth etc does nothing... How should I proceed? Thanks in advance!
Click to expand...
Click to collapse
A debug version was added to the download page.
Would you please run it as before and send me the two generated debug info file "vdso_orig.so" and "vdso_patched.so" to me? They are just dump of some part of kernel and don't contain any personal information.
My e-mail address is: hyln9$live.cn (replace $ with @)
Thanks!
@hyln9 how goes the looking for a 32bit exploit? I'm available to test any developments that have been made, using an AT&T Galaxy S5 running Android 5.0 ((I can upgrade to 5.1.1 or 6.0 if needed)
(Try exploiting wpa_supplicant )
hyln9 said:
A debug version was added to the download page.
Would you please run it as before and send me the two generated debug info file "vdso_orig.so" and "vdso_patched.so" to me? They are just dump of some part of kernel and don't contain any personal information.
My e-mail address is: hyln9$live.cn (replace $ with @)
Thanks!
Click to expand...
Click to collapse
Just sent them to you...
hyln9 said:
A debug version was added to the download page.
Would you please run it as before and send me the two generated debug info file "vdso_orig.so" and "vdso_patched.so" to me? They are just dump of some part of kernel and don't contain any personal information.
My e-mail address is: hyln9$live.cn (replace $ with @)
Thanks!
Click to expand...
Click to collapse
I also sent!!
Is there any way this can with for the at&t lg g5 h820 I believe. I hope so that is the only thing I hate with this phone. No root. So boring.
What port should we be using? When I use the non-debug version it hangs waiting for the reverse connection... using the debug version it dies before even creating a log file it says: "Internal error: unknown kernel." I'm running an AT&T G5 (H820) without the latest patches...
rvyhmeister said:
What port should we be using? When I use the non-debug version it hangs waiting for the reverse connection... using the debug version it dies before even creating a log file it says: "Internal error: unknown kernel." I'm running an AT&T G5 (H820) without the latest patches...
Click to expand...
Click to collapse
did you reboot phone?
and maybe you don't get error.
Not executable 64 bit elf file?
jcpowell said:
Not executable 64 bit elf file?
Click to expand...
Click to collapse
That means you're trying to run this 64 bit exploit on a 32 bit android system. The exploit doesn't work on 32 bit because 32bit systems don't have vdso. I'm working on a different exploit and I think this dev is too but I don't expect much out of my tests since it's mostly device specific.
iptr9 said:
did you reboot phone?
and maybe you don't get error.
Click to expand...
Click to collapse
Rebooted... running the debug
Now I get this
Syscall error: bind at line 392 with code 13.
No files are created... what port should I tell it? Thanks!
rvyhmeister said:
Rebooted... running the debug
Now I get this
Syscall error: bind at line 392 with code 13.
No files are created... what port should I tell it? Thanks!
Click to expand...
Click to collapse
maybe you have to cd into /data/local/tmp
and then ./exploit
iptr9 said:
maybe you have to cd into /data/local/tmp
and then ./exploit
Click to expand...
Click to collapse
I've done that... the interesting thing is that if I run simply
./exploit
it replies
CVE-2016-5195 POC FOR ANDROID 6.0.1 MARSHMALLOW
Usage:
./exploit port: use local terminal.
./exploit ip port: use remote terminal.
If I enter any number, it then fails...
rvyhmeister said:
I've done that... the interesting thing is that if I run simply
./exploit
it replies
CVE-2016-5195 POC FOR ANDROID 6.0.1 MARSHMALLOW
Usage:
./exploit port: use local terminal.
./exploit ip port: use remote terminal.
If I enter any number, it then fails...
Click to expand...
Click to collapse
try a port above 1024
saspipi said:
try a port above 1024
Click to expand...
Click to collapse
thanks.... it starts fine.... but then hangs waiting for the reverse shell to connect.... I've got the zip with the two debug files that I'm attaching
Hi guys, I would check the badblocks in my android with the badblocks tool, but I cant found the binary for my:
My pc SO is a debian jessie of 64 bits.
Architecture: armv7
Processor: mt6582
Rom lollipop 5.1 (Bricket)
Recovery: TWRP 3.0.1.
Click to expand...
Click to collapse
Note: I want not use e2fsck neither fsck.... I would like check it through of badblocks
How could compile or get it (the badblocks for execute from /sbin/)?
I've read about of install SDK and NDK tools, I've downloaded and installed. it. :victory:
I found this source, should I works for me?
https://github.com/mmeeks/ext2tools/blob/master/ext2fs/badblocks.c
https://git.kernel.org/cgit/fs/ext2/e2fsprogs.git/tree/misc/badblocks.c
Click to expand...
Click to collapse
Could someone guide me for compile it ? :3
Thank you very much