URL and Link repository

Saturday, October 13, 2018

Linux Deploy Settings

Here are the settings for installing base debian on Android with SSH only.

Here is a link to Kali Linux Android images.

Thursday, October 11, 2018

Lenovo Yoga Book Android - Breaking Super User

I have found that when using Linux Deploy to install a Linux distro, the install process stops after breaking super user, the scripts cannot continue as root privilege is no longer in place.

After booting into TWRP and flashing the Super User Update file from ChainFire, I soft bricked the elegantly designed Lenovo Yoga Book. Yay! Now I need to go back and revisit my earlier post on how to Root the Yoga Book.

New approach to rooting after enabling developer options and yada yada yada...

  • Download Magisk 17.1
  • adb reboot-bootloader
  • adb push Magisk-v17.1.zip /tmp
  • fastboot boot recovery_twrp.img
  • From TWRP menu-Install|flash /tmp/Magist-v17.1.zip
  • Reboot
  • Download and install the recommended super user APK from here.
  • Thursday, October 4, 2018

    Lenovo Yoga Book - Installing Debian Linux on Android - Then Aircrack

    First install Debian from Google Play Store - > here.

    Open up terminal and run the following command to set up the environment for AirCrack:
    sudo apt-get install build-essential autoconf automake libtool pkg-config libnl-3-dev libnl-genl-3-dev libssl-dev ethtool shtool rfkill zlib1g-dev libpcap-dev libsqlite3-dev libpcre3-dev libhwloc-dev libcmocka-dev

    Install Aircrack:
    wget https://download.aircrack-ng.org/aircrack-ng-1.4.tar.gz
    tar -zxvf aircrack-ng-1.4.tar.gz
    cd aircrack-ng-1.4
    autoreconf -i
    ./configure --with-experimental
    make
    make install

    Help Desk at http://spideronfire.com

    Nexus 7 2013 WiFi not Recognizing USB WiFi Adapter

    Decided to start over by flashing the CM mod downloaded from here. GAAPS zip file from here. Following this instructional video at YouTube.

    Trying to get Android / Kali Net Hunter to Recognize a USB Wifi Adapter

    First of all, apt-get update is not working against what is in the /data/local/nhsystem/kali-armhf/etc/apt/sources.list. I got rid of everything in there and added deb http://http.kali.org/kali kali-rolling main non-free contrib
    The apt-get update now returns an error on expired keys. To resolve this, I opened a command line in Kali and typed: apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    After editing sources.list, I ran the following one at a time and in this order: apt-get update, apt-get upgrade, apt-get dist-upgrade, apt-get install kali-linux-nethunter Here is the source of this nugget: Kali forums.
    I picked up a $10.00 TL-WN725N USB WiFi adapter from Office Depot. Through Google, I discovered that the chipset is rtl8192cu.
    Now I will follow askUbuntu on how to install the driver. Also following pvaret on GitHub

    Saturday, September 1, 2018

    Bricking the Nexus 7 2013 with Kali Net Hunter

    I plugged in the TP-Link TL-WN722N wifi adapter and got no blinking light on the adapter. Figuring it was a problem with my Android build, I started playing around with flashing different images in different ways, which eventually resulted in an unresponsive tablet, both on the touch screen and eventually not moving past the Google Logo after power on.

    After several times incorrectly trying to flash a stock image, I eventually erased the entire system partition with the Nexus Root Toolkit (NRT). See the following screenshots.


    Voila, the tablet booted into the familiar interface; however, since things never go smoothly, the auto rotate no longer worked. Therefore I uninstalled all unnecessary apps, pressed gently on the N and S letters on the backside logo, turned auto rotate on and off several times, powered down the device several times, and twirled around in a counter clockwise circle while chanting the F word. Eventually auto rotate mysteriously started working.

    The next issue was all the space taken up by the sdCard/!ReadytoFlash folder created by NRT. In order to delete the unnecessary zip files, I rebooted into the TWRP recovery and used its file manager to delete.

    After all this, the USB adapter with a TP-Link TL-WN722N antenna is still not recognized by the Marshmallow tablet.

    Stay tuned, I will be back to report what magical sequence of spells are required to make it work.

    Wednesday, August 8, 2018

    Installing Kali Net Hunter on Nexus 7

    Start here.
    Then you'll need this
    I found that the most important part was installing the ADB drivers for the device.
    Follow the Nexus Root Toolkit instructions on how to delete existing USB drivers, because you may find that Windows likes to install the USB connected device under MTP. It needs to be in the Device Manager under Android | Android ADB.
    I also found that disconnecting the Internet / WiFi on the host PC helps prevent Windows from going out to the internet to search for drivers that will overwrite the USB interface to the Nexus 7.
    You will need TWRP from here OR here.

    After Unlock and Root with TWRP recovery, then use NRT to install the Net Hunter image. Go here.


    For no good reason other than there was an option to do so, I copied the NRT Window Log below:


    Nexus Root Toolkit v2.1.9
    
    Masterlists:
    - LatestToolkitFiles.ini 3135
    - AndroidDeviceListFull.ini 3135
    - AndroidDeviceListFlash.ini 3135
    
    RAZOR-FLO: Android 6.0.1 - Build: MOB30X
    
    Live log initiated [2018-08-08]:
    
    
    Checking ADB/FASTBOOT Connectivity
    adb devices
    09e791fb device
    fastboot devices
    
     + ADB Device Connected
    
    Rebooting your device into bootloader mode...
    adb reboot bootloader
    
    Checking Fastboot Connectivity
    fastboot devices
    09e791fb fastboot
     + Fastboot Device Connected
    
     + Confirmed: Bootloader Unlocked.
    Flashing Custom Recovery to RECOVERY partition...
    fastboot flash recovery "C:\Program Files (x86)\WugFresh Development\
    Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img"
    
    Temporarily Booting TWRP...
    fastboot boot "C:\Program Files (x86)\WugFresh Development\
    Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img"
    
    Checking ADB Recovery Connectivity
    adb devices
    09e791fb recovery
     + ADB Recovery Device Connected
    
    Pushing root files to your device:
    Pushing "SR1-SuperSU-v2.78-SR1-20160915123031.zip" to your device:
    
    adb push "C:\Program Files (x86)\WugFresh Development\
    Nexus Root Toolkit\data\Root_Files\
    SR1-SuperSU-v2.78-SR1-20160915123031.zip" "/sdcard/!ReadyToFlash/
    Root_Files/SR1-SuperSU-v2.78-SR1-20160915123031.zip"
    
    100%  /sdcard/!ReadyToFlash/Root_Files/SR1-SuperSU-v2.78-SR1-20160915123031.zip
    
    Hash verifying file transfer:
    627c4b98e7bf83293e81d3758accf753 = Local Hash
    627c4b98e7bf83293e81d3758accf753 = Device hash
     + Verified!
    
    Pushing "busybox-signed.zip" to your device:
    
    adb push "C:\Program Files (x86)\WugFresh Development\
    Nexus Root Toolkit\data\Root_Files\busybox-signed.zip" "/sdcard/
    !ReadyToFlash/Root_Files/busybox-signed.zip"
    
    100%  /sdcard/!ReadyToFlash/Root_Files/busybox-signed.zip
    
    Hash verifying file transfer:
    0ece645c3ca95a10f9a4344300ce0f8f = Local Hash
    0ece645c3ca95a10f9a4344300ce0f8f = Device hash
     + Verified!
    
    Pushing "quick-reboot-signed.zip" to your device:
    
    adb push "C:\Program Files (x86)\WugFresh Development\
    Nexus Root Toolkit\data\Root_Files\quick-reboot-signed.zip" "/sdcard/
    !ReadyToFlash/Root_Files/quick-reboot-signed.zip"
    
    100%  /sdcard/!ReadyToFlash/Root_Files/quick-reboot-signed.zip
    
    Hash verifying file transfer:
    64384a4285d14f0727ea989c17c8909b = Local Hash
    64384a4285d14f0727ea989c17c8909b = Device hash
     + Verified!
    
    Pushing "openrecoveryscript" to your device:
    
    adb push "C:\Program Files (x86)\WugFresh Development\
    Nexus Root Toolkit\data\Root_Files\
    openrecoveryscript" "/cache/recovery/openrecoveryscript"
    
    100%  /cache/recovery/openrecoveryscript
    
    Hash verifying file transfer:
    b42ecaae4b4c4d37d3200b874e29366b = Local Hash
    b42ecaae4b4c4d37d3200b874e29366b = Device hash
     + Verified!
    
    Rebooting your device into bootloader mode...
    adb reboot bootloader
    
    Checking Fastboot Connectivity
    fastboot devices
    09e791fb fastboot
     + Fastboot Device Connected
    
    Temporarily Booting TWRP...
    fastboot boot "C:\Program Files (x86)\WugFresh Development\
    Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img"
    
    Rooting...
    Waiting for your device...
    Device Detected
    Automated Rooting Procedure Complete!
    

    You should see something like this in the NRT Log Window:

    Nexus Root Toolkit v2.1.9 Masterlists: - LatestToolkitFiles.ini 3135 - AndroidDeviceListFull.ini 3135 - AndroidDeviceListFlash.ini 3135 RAZOR-FLO: Android 6.0.1 - Build: MOB30X Live log initiated [2018-08-08]: Checking ADB/FASTBOOT Connectivity adb devices 09e791fb device fastboot devices + ADB Device Connected Rebooting your device into bootloader mode... adb reboot bootloader Checking Fastboot Connectivity fastboot devices 09e791fb fastboot + Fastboot Device Connected Temporarily Booting TWRP... fastboot boot "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img" Checking ADB Recovery Connectivity adb devices 09e791fb recovery + ADB Recovery Device Connected Pushing "nethunter-flo-marshmallow-3.0.zip" to your device: adb push "C:\Users\SpiFi\Downloads\ nethunter-flo-marshmallow-3.0.zip" "/sdcard/ !ReadyToFlash/nethunter-flo-marshmallow-3.0.zip" 100% /sdcard/!ReadyToFlash/nethunter-flo-marshmallow-3.0.zip Hash verifying file transfer: aede8c474cb73c43205c6426ec23ad5a = Local Hash aede8c474cb73c43205c6426ec23ad5a = Device hash + Verified! Pushing "openrecoveryscript" to your device: adb push "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\stored\openrecoveryscript" "/cache/recovery/openrecoveryscript" 100% /cache/recovery/openrecoveryscript Hash verifying file transfer: 34b17570a68297721a19be80821452cc = Local Hash 34b17570a68297721a19be80821452cc = Device hash + Verified! Rebooting your device into bootloader mode... adb reboot bootloader Checking Fastboot Connectivity fastboot devices 09e791fb fastboot + Fastboot Device Connected Temporarily Booting TWRP... fastboot boot "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img"

    Friday, July 27, 2018

    Lowering the 2011 Victory Cross Country Motorcycle

    1. Buy lowering links from Witch Doctors
    2. Buy a lowered kick stand.
    3. Watch You Tube Video
    4. Get your self a proper jack. Here is what I got from Harbor Freight.
    5. Remember that once the suspension is lowered, you may not be able to pull the jack out, so an extra car tire jack might help create the necessary gap.
    6. Probably a good idea to secure the front wheel by keeping the handle bar break lever closed, so the bike does not roll. See image below.
    7. Also remember steel toed boots just in case, because you are messing with a 900 pound vehicle.
    8. By myself, this took 6+ hours, much of it spent slowly struggling and pounding coffee.

    Sunday, July 22, 2018

    Update to Root Lenovo Yoga Book

    Please refer to the previous post.
    I found it necessary to install a previous version of Linux Deploy. linuxdeploy-2.0.0-216.apk
    Then I needed to visit Google Play and turn off automatic updates.
    Go to Settings | Apps | Linux Deploy on the Yoga Book and grant permissions manually.
    Use a Root Browser to copy the SU file from /magisk/.core/bin/su to /system/bin/su and /system/xbin/su.
    Lastly, in order to have VNC connect, I needed the password from Linux Deploy under properties, which is under the arrow down button in the upper right. See image below.
    Best of Luck.

    Tuesday, July 17, 2018

    Root Lenovo Yoga Book YB1-X90F

    One must first downgrade the Android OS to Nougat following the instructions here.
    Be patient between steps as there is a slight lag between screen prompts.
  • After downgrading to Nougat through Intel Platform Flash Tool Lite., enable Developer Options by tapping Settings | About | Build Number until Developer options is confirmed.
  • Under Developer Options turn on OEM Unlocking and USB Debugging while turning off Automatic System Updates.
  • Connect Yoga Book to PC with ADB and Fastboot already installed and the environment variables set so that one can open a command line and issue ADB and Fastboot commands.
  • Open the Windows Command Prompt and type "adb devices".
  • If the Yoga Book is listed, then type "adb reboot-bootloader". If the Yoga Book is not listed, you must figure that out on your own.
  • Once the device is showing the boot loader, type in the command prompt "fastboot flashing unlock"
  • If that does not work, then you will likely have to use the adb and fastboot commands that are in the directory c:\Users\[your user name]\AppData\Local\Android\Sdk\platform-tools, so open a command line or power shell while in that directory.
  • After a successful unlock and reboot, you will encounter the set up process again. Complete the set up and enable Developer Options again with USB debugging.
  • Now you must download TWRP Recovery image to the same directory as Fastboot.
  • Download all the necessary root files from here aka MMRoot.
  • With the Yoga Book connected to the PC, copy the MMRoot files from the PC to the Downloads directory on the Yoga Book.
  • Open a Windows command line and type "adb reboot-bootloader", then "fastboot boot recovery_twrp.img".
  • Use the TWRP menu to Install 1-Magisk-v7.zip
  • Then Install 2-phh-superuser-magisk-r259.zip
  • Links that helped compile these steps
  • Yoga Book Nougat Stock ROM
    XDA root Yoga Book
    XDA root Yoga Book revised

    Monday, April 30, 2018

    Resurrect Galaxy Tab 2 7.0 P3113

    I discovered that a part time gal at work had no phone and no computer due to repairs. Since she is also a student at a local community college, I volunteered to give her my spare Android tablet. However, when I factory reset the Cyanogenmod build the tablet became stuck in the logo loop. Therefore, I needed to copy the following files to the tablet after connecting it to my Hewlet Packard laptop.

  • Android ROM
  • TWRP
  • Odin
  • Gapps
  • First install Odin on the PC. Second connect tablet to the PC and use ODIN to flash the TWRP image. Third, boot tablet into TWRP and copy the ROM and Gapps to the tablet. Fourth, use TWRP to install both files. Lastly Wipe/Dalvik and reboot.

    Sunday, April 1, 2018

    Using CSS to Fit Images into an HTML Div

    Below are two Div classes meant to display content side by side across a page


    .left {
    width: 50%;
    float: left;
    color: black;
    display:block;
    margin: 0 auto;
    height: 300px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #000000;
    }
    .right{
    float: left;
    color: black;
    display:block;
    margin: 0 auto;
    width: 50%;
    height: 300px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #000000;
    }
    

    Here is the image class definition

    img { object-fit: contain; display: inline-block; }

    Here is the image that will appear in the left div.

    <div class="left" title="Managing Shedule"> 
    			
    <img width="350px" src="slides/web1.png"/>
    
    </div>
    

    Tuesday, February 20, 2018

    Android: HttpURLConnection java.io.FileNotFoundException

    This is a nasty little error that I was seeing in the Log Cat while debugging my Android app.
    I was using
    //letterStrings is an ArrayList() populated with 'aaa','bbb','ccc','ddd'
    JSONArray jsonArray = new JSONArray(letterStrings);
    //jsonArray looks like this: ['aaa','bbb','ccc','ddd'];
    sNotes = 'These are my notes';
    URL url = null;
    HttpURLConnection urlConnection = null;
    String link = "http://somewebsite.com?&userID=3&jsonArray="+jsonArray+"¬es="+sNotes;
    // The above looks like this when resolved: "http://somewebsite.com?&userID=3&jsonArray=['aaa','bbb','ccc','ddd']¬es=These are my notes";
    url = new URL(link);
    urlConnection = (HttpURLConnection) url.openConnection();
    Funny thing is that the resolved string link runs just fine from the browser address bar.
    From within Android using HttpURLConnection, the link results in a FileNotFoundException.
    Why? You ask.
    Because I must make sure that the values for jsonArray and sNotes are properly formatted for the URLconnection.
    Therefore, I must first do the following before I put together the string link.
    String urlNotes = URLEncoder.encode(snotes, "UTF-8");
    String urlJson = URLEncoder.encode(jsonArray.toString(), "UTF-8");
    Now the String link = "http://somewebsite.com?&userID=3&jsonArray="+urlJson+"¬es="+urlNotes;

    Android Overlay a First Run Tutorial screen over the Main Activity

    Here is a great link on how to create the overlay. Christian Peters