Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128) #33

Closed
breversa opened this issue Jun 18, 2017 · 7 comments
Assignees
Labels

Comments

@breversa
Copy link

breversa commented Jun 18, 2017

Hi,

Coming from microg/UnifiedNlp#133, I wanted to give the unofficial microG installer a try (from https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360).

Since I'm using LineageOS 14.1, I first need to add signature spoofing, so i came here to try Tingle.

I downloaded the current version, but here's the output :
`python main.py
MENU
1 - Patch file from a device (adb)
2 - Patch file from the input folder

1
*** OS: Linux 4.10.0-22-generic (linux)
*** Mode: 1
*** Working dir: /tmp/Tingle-sCi2uB
*** Selected device: ????????????
Traceback (most recent call last):
File "main.py", line 402, in
OUTPUT_PATH = os.path.join(SCRIPT_DIR, "output", SELECTED_DEVICE)
File "/usr/lib/python2.7/posixpath.py", line 73, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)`

That must be some kind of UTF-8 encoding issue, right ?

@ale5000-git
Copy link
Owner

ale5000-git commented Jun 18, 2017

@breversa: Probably.

@ale5000-git
Copy link
Owner

Please try the latest version, it should fix the problem.

@ale5000-git ale5000-git self-assigned this Jun 19, 2017
@breversa
Copy link
Author

breversa commented Jun 19, 2017

Getting closer :

$ sudo python main.py
MENU

    1 - Patch file from a device (adb)
    2 - Patch file from the input folder

> 1

 *** OS: Linux 4.10.0-22-generic (linux)
 *** Mode: 1
 *** Working dir: /tmp/Tingle-tlh737
 *** Selected device: LGH81563e0706b
Traceback (most recent call last):
  File "main.py", line 404, in <module>
    OUTPUT_PATH = os.path.join(SCRIPT_DIR, "output", SELECTED_DEVICE)
  File "/usr/lib/python2.7/posixpath.py", line 73, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)

@ale5000-git
Copy link
Owner

ale5000-git commented Jun 24, 2017

@breversa: Please try the latest version and report back :)

@breversa
Copy link
Author

breversa commented Jun 24, 2017 via email

@breversa
Copy link
Author

It works ! :D

$ sudo python main.py 
MENU

    1 - Patch file from a device (adb)
    2 - Patch file from the input folder

> 1

 *** OS: Linux 4.10.0-24-generic (linux)
 *** Mode: 1
 *** Working dir: /tmp/Tingle-AM5WAn
 *** Selected device: LGH81563e0706b
 *** Pulling framework from device...
      DEBUG: 4643 KB/s (6590396 bytes in 1.386s)
 *** Decompressing framework...
      DEBUG: Decompressing framework.jar
 *** Disassembling classes...
      DEBUG: Disassembling framework/classes.dex
 *** Patching...
 *** Detected: Android 7.x / Android 6.0.x / CyanogenMod 13-14
 *** Patching succeeded.
 *** Reassembling classes...
      DEBUG: Assembling out/classes.dex
 *** Recompressing framework...
      DEBUG: Compressing framework.jar
 *** Copying the patched file to the output folder...
 *** Rooting adbd...
      DEBUG: restarting adbd as root
 *** Unlocked ADB: True
 *** Remounting /system...
      DEBUG: remount succeeded
 *** Pushing changes to the device...
      DEBUG: 7663 KB/s (6493638 bytes in 0.827s)
 *** All done! :)

Your original file is present at /home/…/Tingle/tingle-master/output/LGH81563e0706b/framework.jar.backup

If your device bootloop, please run this command on the pc when the connected device is inside recovery:
adb push "/home/…/Tingle/tingle-master/output/LGH81563e0706b/framework.jar.backup" /system/framework/framework.jar

@ale5000-git
Copy link
Owner

Good :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants