1. johnyjj2's Avatar

    I wanted to unlock, root and install CyanogenMod on HTC One M8. Before that I want to ensure that all my private data are copied to my desktop PC with Ubuntu. Unfortunately I cannot see any way to enable USB debugging on my M8. Without that, it does not work.

    cd HTCOneRoot/
    cd HTCOneRoot/
    adb.exe fastboot-linux
    adb-linux fastboot-mac
    adb-mac HTCDriver_4.1.0.001.exe
    AdbWinApi.dll openrecovery-twrp-
    AdbWinUsbApi.dll openrecovery-twrp-
    CWM-SuperSU-v1.30.zip recovery-clockwork-touch-
    fastboot.exe UPDATE-SuperSU-v1.65.zip
    chmod 755 *
    ./adb-linux backup -apk -all -f backup.ab
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    adb: unable to connect for backup
    I have found some tutorials (sorry, I cannot provide you the link where I have found those, as it would break forum rules) that show where I can change it in the settings to enable USB debugging. But there is no such entry in my settings! I guess something might have changed in newer versions of HTC Android. And without that adb does not work.

    I have disabled any synchronization with Google because I don't trust Google with my private data.

    I wanted to ensure that all my contacts and history of SMS are backed up. I have copied the whole content of internal storage (I didn't buy any additional SD card) to my Ubuntu computer. Is it enough to be able to restore contacts and SMS history after installing CyanogenMod? Which file contains SMS history and contacts? Where can I find temporary files created by application? Why isn't it enough just to copy content of some directory to computer and then copy it again to HTC internal storage to restore the application and I need to use adb application?

    Thanks a lot for answers in advance :-)

    PS I had to delete parts of Ubuntu terminal output because it is treated by the forum as links to websites.
    10-29-2014 07:24 AM
  2. Apptelope's Avatar
    You have to enable your developer options first. How to do it for your device? Google.
    10-29-2014 08:27 AM
  3. johnyjj2's Avatar
    That's exactly what I have done. I have searched on Google and found page where it is explained. (I wanted to give you the link in the first post but it is not allowed according to this forum rules). Unfortunately the explanation in that link I have found (and some others) refers to the option which is not present in the settings at all!

    PS OK, I have found that I had no 'developer options' because I had to click five times in 'build number' item in the menu. Then 'developer options' appeared. It wasn't explained in the link that I have found.

    I am still curious why I need to use adb at all - i.e. what can it do that is impossible with just copying and pasting content of internal memory.
    10-29-2014 10:35 AM
  4. Rukbat's Avatar
    You can't access some parts of the phone from Ubuntu. Adb shell ... well, if you know Ubuntu, you know what shell (I believe the default in Android is bash) and su can do. Even backing up the kernel is just a lot of typing if you're in the shell and can run under su. (Since everything is a partition, you can back up Android, the recovery partition, everything. You can copy files or use dd. That last question was really just to test us, wasn't it?)
    johnyjj2 likes this.
    10-30-2014 12:30 AM

Similar Threads

  1. Mint! Samsung Galaxy S5 White Verizon with lots of extras!
    By fofjjsr in forum Marketplace Archive
    Replies: 21
    Last Post: 11-16-2014, 10:48 AM
  2. Is there a keyboard that I can download for the Portuguese language?
    By brenoaf in forum General Help and How To
    Replies: 6
    Last Post: 11-04-2014, 03:48 PM
  3. Replies: 1
    Last Post: 10-29-2014, 12:03 PM
  4. Replies: 2
    Last Post: 10-29-2014, 09:18 AM
  5. Google+ photo backup settings have changed
    By lrrowley in forum LG G3
    Replies: 0
    Last Post: 10-29-2014, 01:14 AM