Home of Bobby Yan

A site all about me

I am Bobby Yan, an enthusiastic maker of things. Call me a programmer, web developer, designer or a teacher. Currently a freshman at UC Berkeley studying Electrical Engineering and Computer Science.


Check out my bio!

Fixes for Common Problems with Electra Jailbreak for iOS 11

Problem: Cydia not showing up/Stuck at 2/3

  1. ssh into your device
  2. run uicache and killall SpringBoard.
  3. (Stuck at 2/3 only) Re-jailbreak

Problem: Tweaks installed but not showing in Settings

Method 1 (via Filza)

  1. Get FilzaEscaped (Alternative) on your device.
  2. Rename the /Library/TweakInject folder to something else.
  3. Create a symbolic link of /Library/MobileSubstrate/DynamicLibraries and rename the link TweakInject.
  4. Respring your device by running killall SpringBoard.

Method 2 (via SSH)

  1. ssh into your device

  2. run the following

mv /Library/TweakInject /Library/TweakInject.backup && ln -s /Library/MobileSubstrate/DynamicLibraries /Library/TweakInject

Problem: Can’t connect to the Internet

  1. ssh into your device
  2. cd /var/preferences
  3. mv com.apple.networkextension.plist com.apple.networkextension.plist.backup && mv com.apple.networkextension.cache.plist com.apple.networkextension.cache.plist.backup && mv com.apple.networkextension.necp.plist com.apple.networkextension.necp.plist.backup

Problem: “dpkg: locked

Method 1

  1. Download dkpg.zip, and put it in your ~/Downloads folder, for example
  2. unzip dkpg.zip.
  3. scp -r dpkg.zip [email protected]<device-ip-address>:/var/mobile/Media/Books/.
  4. ssh into your device and run reboot.

Method 2 (via delectra)

  1. Download unjailbreak.sh from GitHub or here.
  2. scp unjailbreak.sh [email protected]<device-ip-address>:/electra/
  3. ssh into device
  4. sh /electra/unjailbreak.sh and reboot the device one more time after it automatically reboots.
  5. Re-jailbreak

Problem: Accidentally “Erase All”

  1. Download APTs.zip, lib.zip and MobileTerminal.zip.
  2. Unzip MobileTerminal.zip and use Cydia Impactor to install MobileTerminal.ipa onto your device.
  3. Use iFunbox to transfer APTs.zip and lib.zip into /var/mobile/Media/Books/.
  4. ssh into your device or open MobileTerminal
    1. cd /var/mobile/Media/Books && unzip lib.zip && unzip APTs.zip
    2. mv lib /var
    3. dpkg -i /var/mobile/Media/Books/*.deb
    4. reboot
  • Liberty Lite from https://ryleyangus.com/repo/
  • NewTerm2 from https://cydia.hbang.ws/
  • Filza File Manager
  • iCleaner Pro
  • EasySwitcherX
  • FastUnlockX
  • HideBarX
  • NoMoreSmallApps
  • NoSubstitute (Electra) – for disabling jailbreak in apps like Snapchat
  • RealCC – to actually turn off WiFi, Bluetooth etc. in the Control Center
  • ScramblePass –  scrambles keypad positions
  • Bazzi – The ultimate battery icon customizer tweak
  • DoubleTapLock – almost essential
  • SmartLPM – smart Low Power Mode

Some Fun Stuff with Terminal

  • To get a list of IDs of the installed packages: use
    • dpkg --get-selections,
    • dpkg -l | cut -d ' ' -f 3
    • dpkg -l | grep -v '^rc\|gsc\|cy+' | cut -d ' ' -f 3
    • dpkg --get-selections | awk '{print $1}'|grep -v gsc|grep -v "^cy+"

Other Good Resources

  • List of good tweaks compatible with iOS 11.3.1 here.
Recent Posts

Awesome stuff you could do after a Jailbreak

The Awesome APT Package…

programmingtutorialscodeselectrajailbreakMore
Older Posts

How to Switch to App Store of a Different Country

Note: If you are trying to actually download anything from the App Store of a different region, you’ll have to change the country of your Apple ID.…

tutorialsappleMore