[DEV] [WIP] Pebble emulator - Pebble

After a whole lot of long evenings, odd hacking sessions and other fun things, I'm proud to present a full-system emulator for pebble.
This differs from existing solutions by actually emulating the pebble firmware using QEMU rather than simulating system calls!
It's still very much work in progess, but it currently boots a slightly modified firmware and allows navigating around the menus.
The long-term goal is to get it to a state where installing apps using libpebble is possible and hence allow using it for development.
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Limitations:
Needs a full dump of the internal flash to boot (Working to allow it to boot a tintin_fw.bin directly)
Requires a modified firmware (BT initialization disabled)
Requires an SPI flash dump to be usable (Needs modified firmware to dump!)
There's currently no way to install apps
It has only been tested with firmware version 2.0.0
Sources:
https://github.com/pebbledev/qemu_pebble
DumpPebble: https://github.com/Hexxeh/DumpPebble
Dump Pebble SPI Flash: https://github.com/EnJens/DumpPebbleSPIFlash

Required patches:
On a full internal flash dump of Firmware 2.0.0 (ev2_4 - e.g. original kickstarter watch!), the following patch needs to be applied to get it running in the emulator:
patch 0x0803d910 1BE0 (Inside a full dump, the offset will be -0x8000000, e.g. offset 0x3d910)

Reserved2

Does this compile and run under android? I could see this being useful on watch devices like the Omate TrueSmart

fg said:
Does this compile and run under android? I could see this being useful on watch devices like the Omate TrueSmart
Click to expand...
Click to collapse
I doubt the CPU in the Omate is sufficiently powerful to do this right now. (I say right now, because it might theoretically be possible to optimize emulation since the cpu could directly execute most instructions...Similar to x86 on x86 emulation).
But no, this doesn't compile and run under android. It's intended for development of apps, rather than daily usage.

How do you run this under Windows? I can't seem to find a .bat or .exe file. Or does this only run with Linux?

Related

Testers Needed!!!

Sorry guys. I was hoping there was a backdoor that I may have missed to get this to work. After working with a couple folks there is no way to make this a user friendly install even with the corrected partition map info. As soon as you guys get unlocked I will revisit this and I will be checking back on a regular basis.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am looking at yet another Universal release. This time it's not a universal MotoBlur ROM but a possible Universal Ubuntop/Webtop+ release but I need testers. It is based on the latest Webtop release for the Photon (WT-1.2.0-180) and is successfully running on the Atrix, Electrify and Photon. We've been running Ubuntop/Webtop+ since September with minimal issues and I have received multiple requests to port. If successful, the advantage of this universal release is that any improvements and enhancements will carry over to all devices. ​
Prerequisites:
Unlocked
CWM Recovery (Bootstrap MAY work)
GB Blur based ROM with Webtop support (for now)
/osh be located at /dev/block/mmcblk0p13 (if osh is not located at mmcblk0p13 PM me with the correct partition location)
/osh be atleast 755.9MB
Not afraid of using terminal
Latest version of 7Zip
Ubuntop.7z - 264.3 MB (MD5- AA02B21D7A8D733621AD48B1425E95C8)
DO NOT POST RESULTS - PM ME YOUR RESULTS - IF THIS WORKS I WILL BE RELEASING TODAY​
Installing:
Make a full backup including webtop (this is key so you can revert any changes)
Extract the UbunTop.7z file (this requires you have the latest version of 7zip installed)
Copy the Ubuntop folder to internal storage (again this is a must)
From CWM recovery, flash the Univ_Ubuntop_v1.0.0.zip
Reboot and launch webtop
Follow the instructions in the "READ ME!!!" file in the Ubuntop folder
(Right now I'm looking for install success and menupatch success. If you want to install applications and report on that as well that's great.)
Haven't slept in over 24hrs and just realized I need to use Aroma Installer. Gonna get some sleep, fix and reup Universal Ubuntop. For those that know what they are doing, edit the scripts to point ot the proper partition to play with it.

Testers Needed!!!

Sorry guys. I was hoping there was a backdoor that I may have missed to get this to work. After working with a couple folks there is no way to make this a user friendly install even with the corrected partition map info. As soon as you guys get unlocked I will revisit this and I will be checking back on a regular basis.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am looking at yet another Universal release. This time it's not a universal MotoBlur ROM but a possible Universal Ubuntop/Webtop+ release but I need testers. It is based on the latest Webtop release for the Photon (WT-1.2.0-180) and is successfully running on the Atrix, Electrify and Photon. We've been running Ubuntop/Webtop+ since September with minimal issues and I have received multiple requests to port. If successful, the advantage of this universal release is that any improvements and enhancements will carry over to all devices. ​
Prerequisites:
Unlocked
CWM Recovery (Bootstrap MAY work)
GB Blur based ROM with Webtop support (for now)
/osh be located at /dev/block/mmcblk0p13 (if osh is not located at mmcblk0p13 PM me with the correct partition location)
/osh be atleast 755.9MB
Not afraid of using terminal
Latest version of 7Zip
Ubuntop.7z - 264.3 MB (MD5- AA02B21D7A8D733621AD48B1425E95C8)
DO NOT POST RESULTS - PM ME YOUR RESULTS - IF THIS WORKS I WILL BE RELEASING TODAY​
Installing:
Make a full backup including webtop (this is key so you can revert any changes)
Extract the UbunTop.7z file (this requires you have the latest version of 7zip installed)
Copy the Ubuntop folder to internal storage (again this is a must)
From CWM recovery, flash the Univ_Ubuntop_v1.0.0.zip
Reboot and launch webtop
Follow the instructions in the "READ ME!!!" file in the Ubuntop folder
(Right now I'm looking for install success and menupatch success. If you want to install applications and report on that as well that's great.)
Haven't slept in over 24hrs and just realized I need to use Aroma Installer. Gonna get some sleep, fix and reup Universal Ubuntop. For those that know what they are doing, edit the scripts to point ot the proper partition to play with it.

[KERNEL] Insecure Kernel with DPI Mod

[KERNEL] Insecure Kernel with DPI Mod
Insecure kernel based on the GB version of the Phone. This allows modding Screen Density of the Phone to a lower DPI, starts adb as root, so you can adb remount, adb push /system /data files easily now.
Issues seen with DPI Modding:
1) The default launcher doesn't work correctly, you'll need to use another launcher.
2) The motorola keyboard is too small, use Swype or any other keyboard of your choice. (Only swype tested working correctly, but others should work correctly too)
Tell me if you find more.
Download:
http://www.sendspace.com/file/0zvprn
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Screenshots are with 160DPI, 200DPI also works nicely (240 is default)
Big thanks to turl1 for the boot image tools.​
Reserved.
Good work mate!
thanks could I ask for the compiled boot tools as iv only got cygwin
rickwyatt said:
thanks could I ask for the compiled boot tools as iv only got cygwin
Click to expand...
Click to collapse
All you really need is make and gcc, should be possible to do that with cygwin.
iv tryed and the tool won't build please could you send the tool as I would like to remove the link data/media
thanks
I wondered why dpi couldn't change in build.prop, now I know why
I'll definitely be trying this out when I get my RAZR i back.
Nice Work...200dpi fits quiet perfect to this Phone :good:
To make it easy 4 lazy people like me, i attach an Kernel Flasher that contains the newboot.img.
Extract the .rar
Enable USB Debugging on your Phone and connect to your PC
Start the install_kernel.bat
RelaX
Your Phone will reboot into Bootloader, flash the Kernel and reboot back into your System

[APP][MORTSCRIPT] A Simple HTML5-Slideshow-Creator

My intention was to embed a slideshow within a HTML-page without the need of any browser plugins to show the images, or even worse, to create such a HTML-page with a 3rd-party application I'ld have to pay for.
So I decided to write my own 32-bit "HTML5-Slideshow-Creator" to be run on Windows computers. "HTML5-Slideshow-Creator" is a utility that lets you tansform a picture gallery into a HTML5 compatible slideshow. The HTML5 page produced doesn't require an Internet connection, because the images to be presented aren't located somewhere in the cloud (AKA Complete Loss Of User Data). Hence you can consider the HTML5 page created as a "standalone" image viewer.
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
"HTML5-Slideshow-Creator" is realized in MortScript language:
The full project-package I've uploaded here to:
http://www.mediafire.com/download/7ohpbioan7nym46/html5-slideshow-creator.zip
The package also contains freeware "painless", a batch image resizer for Windows (does not require being installed or uninstalled).
What you also should know:
Included to "HTML5-Slideshow-Creator" is the ability to convert/optimize the images.
If image to be included into HTML5 slideshow is of file format
a) JPEG then comments and other useless information (such as EXIF information) will be removed
» The tool used is JPEGTRAN (http://linux.about.com/library/cmd/blcmdl1_jpegtran.htm)
b) BMP then it's converted to JPG: BMP files are normally uncompressed, and the compression options available are not very powerful, making the format a poor choice for distribution over the Internet.
» The tool used is BMP2JPG, a small MicroSoft utility - requires MicroSoft .NET framework.
c) PNG then it's optimized, i.e. the size of the file gets losslessly reduced. The resulting "crushed" image will have the same quality as the source image.
» The tool used is PNGCRUSH (http://pmt.sourceforge.net/pngcrush/)
Of course image optimization is optional, you can enable/disable it.
HOW TO MAKE USE OF "HTML5-Slideshow-Creator"
You unzip it, locate folder "html5-slideshow-creator"
and then therein simply run "html5-slideshow-creator.exe". That's all.
After "html5-slideshow-creator.exe" has done its work
you can deploy the ZIP-file created.

When I press the Run button, the app on the emulator does not start

Hello everyone,
imgui/examples/example_android_opengl3 at master · ocornut/imgui
Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies - imgui/examples/example_android_opengl3 at master · ocornut/imgui
github.com
My project is based on this C++ project in Android Studio (ImGui). I had successfully compiled and run the project using the older Android Studio version 2021.3.1.17. However, upon upgrading to Android 2022.2.1 Patch 1, I encountered numerous errors, some of which remained unresolved even after several attempts at restarting, reinstalling, cleaning, and rebuilding the project.
Additionally, I have question: When I press the Run ► button, the app on the emulator does not start. According to the logs, the app, was successfully installed. However, when I touch its icon (ImGuiExample), I get the message "App isn't installed". Can anyone suggest a solution to this problem?
I have a difficult question that I hope someone can help me with: Is there a lightweight version of Android Studio that I can use to build my project without having to download so many SDK files? I believe a lightweight software with fewer SDK files will make it easier for developers to fix bugs, the Android Studio I use has so many SDK files.
Thank you in advance for your help.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am not entirely certain, but I believe that the project was working fine with the old Android Studio 2021, likely because Imgui 1.89 worked but this is Imgui 1.89.6 (a newer), and I uninstalled the old Android Studio.
The solution for me is to downgrade to android-studio-2021.3.1.17. If the breakpoints don't work too for ndkVersion "25.1.8937393" for example then downgrade to ndkVersion "21.4.7075529". The key is then to switch between versions, and you can stick on one version without changing to another version for a long time.
But why, Android Studio has so many versions, I mean a lot? And it's difficult to find the perfect version.

Categories

Resources