yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] Holodroid:
Thanks but I would like to ask two questions:

1. Since what Android version this works? (Solved: Android 2.3.)

2. Since these ROMs are provided in a flashable zip format. It is possible to flash it directly on the emulator?

3. There is any tool that works for YAFFS
[General Questions and Answers] CXZa:
Maybe you could use your android device?

Modify edify updater-script so it only does the system using a different mount point.

And run update-binary with arguments from command line.

Edit it more in Linux if needed,
[General Questions and Answers] Holodroid:
I do not have a device from that era.
[General Questions and Answers] Holodroid:
I have tried YAFFEY but when I create an image and test, it does not boot.
[General Questions and Answers] CXZa:
It doesn't have to be... if it doesn't support yaffs2 then make an ext4 image or partition, run install and then copy it's contents to yaffs2 partition.
[General Questions and Answers] Holodroid:
Sorry but I did not find any install script on my folder.
[General Questions and Answers] CXZa:
Any link to zip? Okay I found one. The script is there but not the binary.

So, the recovery runs the script itself. One could use it but there isn't that many permissions there that one couldn't do it manually..,

Script from the one I found.

show_progress 0.1 0

format SYSTEM:
copy_dir PACKAGE:system SYSTEM:

symlink dumpstate SYSTEM:bin/bugreport
symlink dumpstate SYSTEM:bin/dumpcrash
symlink toolbox SYSTEM:bin/cat
symlink toolbox SYSTEM:bin/chmod
symlink toolbox SYSTEM:bin/chown
symlink toolbox SYSTEM:bin/cmp
symlink toolbox SYSTEM:bin/date
symlink toolbox SYSTEM:bin/df
symlink toolbox SYSTEM:bin/dmesg
symlink toolbox SYSTEM:bin/getevent
symlink toolbox SYSTEM:bin/getprop
symlink toolbox SYSTEM:bin/hd
symlink toolbox SYSTEM:bin/id
symlink toolbox SYSTEM:bin/ifconfig
symlink toolbox SYSTEM:bin/iftop
symlink toolbox SYSTEM:bin/insmod
symlink toolbox SYSTEM:bin/ioctl
symlink toolbox SYSTEM:bin/kill
symlink toolbox SYSTEM:bin/ln
symlink toolbox SYSTEM:bin/log
symlink toolbox SYSTEM:bin/lsmod
symlink toolbox SYSTEM:bin/mkdir
symlink toolbox SYSTEM:bin/mkdosfs
symlink toolbox SYSTEM:bin/mv
symlink toolbox SYSTEM:bin/netstat
symlink toolbox SYSTEM:bin/notify
symlink toolbox SYSTEM:bin/printenv
symlink toolbox SYSTEM:bin/ps
symlink toolbox SYSTEM:bin/reboot
symlink toolbox SYSTEM:bin/renice
symlink toolbox SYSTEM:bin/rmdir
symlink toolbox SYSTEM:bin/rmmod
symlink toolbox SYSTEM:bin/route
symlink toolbox SYSTEM:bin/schedtop
symlink toolbox SYSTEM:bin/sendevent
symlink toolbox SYSTEM:bin/setconsole
symlink toolbox SYSTEM:bin/setprop
symlink toolbox SYSTEM:bin/sleep
symlink toolbox SYSTEM:bin/smd
symlink toolbox SYSTEM:bin/start
symlink toolbox SYSTEM:bin/stop
symlink toolbox SYSTEM:bin/sync
symlink toolbox SYSTEM:bin/top
symlink toolbox SYSTEM:bin/umount
symlink toolbox SYSTEM:bin/vmstat
symlink toolbox SYSTEM:bin/watchprops
symlink toolbox SYSTEM:bin/wipe
set_perm_recursive 0 0 0755 0644 SYSTEM:
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
set_perm 0 3003 02755 SYSTEM:bin/netcfg
set_perm 0 3004 02755 SYSTEM:bin/ping
set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluez
set_perm 0 0 0755 SYSTEM:etc/bluez
set_perm 1002 1002 0440 SYSTEM:etc/dbus.conf
set_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooks
set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh
set_perm 0 0 04755 SYSTEM:bin/su

show_progress 0.2 0
format BOOT:
write_raw_image PACKAGE:boot.img BOOT:
show_progress 0.2 10
[General Questions and Answers] Holodroid:
Is this the one you found?

https://www.mediafire.com/file/r69setif1kvwf5y/JFv1.31_RC30.zip/file
[General Questions and Answers] Holodroid:
Is this like a script?

on system
mount cramfs loop@/system/modules/modules.cramfs /system/modules ro
mount cramfs loop@/system/xbin/xbin.cramfs /system/xbin ro
[General Questions and Answers] Holodroid:
What I want to do is like this, a Cyanogen Mod 3.6 system.img for emulator.

[Testing] Getting an emulator up and running a full ROM with the Market etc.

I am currently using the Android emulator on my machine with a copy of the excellent Cyanogen 3.6.5 ROM I am running on my device. If you'd like to do the same, here's how (it's a great way to play with things like the Android Market that aren't in the real emulator!) Windows PC 1. Download the A...

www.modaco.com
[General Questions and Answers] CXZa:
It's text isn't it... some init commands...

Similar. I found it here.

Google Code Archive - Long-term storage for Google Code Project Hosting.

code.google.com
[General Questions and Answers] Holodroid:
Yes, I downloaded it from there.
[General Questions and Answers] CXZa:
Does this boot?
[General Questions and Answers] Holodroid:
Sadly no. What you used to do this?
[General Questions and Answers] CXZa:
Updated the zip's script to newer edify format and added binary to run it...

Made it to extract itself to cache. See the zip attached.

Then made the image with this, but used a newer version, attached also.

https://xdaforums.com/t/tool-yaffs-explorer-made-for-defy.988687/
[General Questions and Answers] Holodroid:
Ok. The image attached bellow works. You may want to use it as reference.
[General Questions and Answers] CXZa:
So, how you did it?
[General Questions and Answers] Holodroid:
A site that could be used for more modern CyanogenMod versions.

Android SDK Emulator: Compile CyanogenMod (Linux) - CyanogenMod Wiki

web.archive.org
[General Questions and Answers] CXZa:
So, how you did it? Or did you found that img somewhere?

Looks like it's some different ROM...
[General Questions and Answers] Holodroid:
I did not do it, it is an official Android 1.1 system.img for the Android Developer Phone 1 (ADP 1).
[General Questions and Answers] CXZa:
Okay, I cannot tell the difference. There might be some mount point mentioned or just some bit up somewhere...

But how about this one?
[General Questions and Answers] Holodroid:
It works!!!!

But now, I have a question:

1. What you changed? How you made it boot?
[General Questions and Answers] CXZa:
Used different tools... unpacked that1st image and packed again.

https://memcache.firstcloudit.com/andtools/homeen.htm

I didn't use the 1st tool set but the Cygwin ones.

There is also some info about making bootable system.img.

ro.setupwizard.enable_bypass=1 in boot image's default.prop might affect??
[General Questions and Answers] Holodroid:
1. So, how I could do this myself?

2. I found a default.prop, but I do not know how to pull it out of the emulator. How could I pull that using ADB?
[General Questions and Answers] CXZa:
2.

lol... it turned out to be one of my own images that has that value set.

You could add these into it, or system/build.prop if not there already.

ro.setupwizard.enterprise_mode=1

ro.setupwizard.mode=OPTIONAL

also erasing data could help if like used with previous ROM....

You can unpack that boot.img with Android Image Kitchen by @osm0sis

[TOOL] Android Image Kitchen - Unpack/Repack Kernel Ramdisk [Win/Android/Linux/Mac]

Android Image Kitchen -- Unpack/Repack Kernel+Recovery Images, and Edit the ramdisk. Windows ports of the necessary Linux utils for Android image (kernel/recovery) mod work: mkbootimg, unpackbootimg: https://github.com/osm0sis/mkbootimg...

xdaforums.com

1.

Or with my old tool package: uImage_unpack-repack_batch+files_for_Windows - that has now a new name

uImage+Yaffs2_unpack-repack_batch+files_for_Windows as I added Yaffs2 support into it. ;)

Download:

uImage_unpack-repack_batch+files_for_Windows_[cxz].zip

Посмотреть и скачать с Яндекс Диска

disk.yandex.ru

edit: Yaff2 support removed and is now here as a separate download

Yaffs2_unpack-repack_batch+files_for_Windows_[cxz].zip

Посмотреть и скачать с Яндекс Диска

disk.yandex.ru
[General Questions and Answers] CXZa:
Not edify but amend was the old name. Very similar language.

edify - platform/bootable/recovery - Git at Google

One solution could be: amend -- > edify

convert amend scripting to edify scripting?

hey guys. I'm trying to work with a file that was made recently for GB AOSP roms. i'm trying to be a guinea pig and flash it on my Evo 3D since by the looks of the folder structure and files that are being modified it should theoretically work...

xdaforums.com

And then: edify --> bash

[OPEN-SOURCE PROJECT]Flash Gordon, an Edify to Bash parser/translator written in Java

What is Flash Gordon ? Basically, Flash Gordon is an app which allows you to flash any flashable zip (except for Roms) without having a recovery installed. You just point it to the zip you want to flash, (be it a kernel, a mod, gapps...) and it...

xdaforums.com

Then again those updater-scrips are very much alike. Not too much editing in them.
[General Questions and Answers] Holodroid:
1. You could do an step by step guide so me and other people that could see this in the future can understand it better.

2. It did not work by modifying build.prop.
[General Questions and Answers] Holodroid:
1. I have created two bootable images with your tools package that work, but now I have a bigger problem:

ADB does not work with the images that I have created.

But with your image it works. The two images I have created are attached bellow:
[General Questions and Answers] Holodroid:
You could upload that on other site than Baidu?
[General Questions and Answers] CXZa:
Compare the boot/default.prop files and check that boot/sbin/adbd is there.
[General Questions and Answers] Holodroid:
Where i could find those files?
[General Questions and Answers] CXZa:
They are in my tool already... but here you are.

1546G/100G, lol... They gave 2000G and now full. Files are still there though...
[General Questions and Answers] CXZa:
boot.img
[General Questions and Answers] Holodroid:
There is a boot.img on the ROM's zip file, its default.prop says:

#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=0
ro.debuggable=1
persist.service.adb.enable=1

But I think emulator does not use boot.img but there is a ramdisk.img that I could see.
[General Questions and Answers] Holodroid:
What that ramdisk.img's default.prop says:

#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=0
ro.debuggable=1
persist.service.adb.enable=1

So it is an error with the system.
[General Questions and Answers] CXZa:
At least the symlinks are missing. Also setupwizard value in build.prop need its own line...
[General Questions and Answers] Holodroid:
So, what I could do?
[General Questions and Answers] CXZa:
Try putting these to the system/bin folder...
[General Questions and Answers] Holodroid:
It is the same, I suggest that you try to build this image as you built the other and tell me the steps you followed.

Here is a little log:

02:44:25 W/DeviceMonitor: Adb rejected connection to client '5634': closed
06:02:45 E/DDMS: device offline
com.android.ddmlib.AdbCommandRejectedException: device offline
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:774)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:396)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:347)
at com.android.ddmlib.Device.executeShellCommand(Device.java:584)
at com.android.ddmuilib.SysinfoPanel$1.run(SysinfoPanel.java:209)
at java.lang.Thread.run(Unknown Source)
[General Questions and Answers] CXZa:
Upload it. The thing is that the tool should take care of those permissions and owners and such...

Have you tried to unpack the one I made that works, and then repack it again. Does it still work?

Difference between exes in ver 1 and 2 is the symlinks they make. So better to test them both..

Separated the yaffs2 part from my old boot.img tool. Also updated so weird spaces in file names do less harm.

Here its link: https://disk.yandex.ru/d/gP23gYAgsQ721g
[General Questions and Answers] Holodroid:
So when I unpack/repack it with that tool, ADB does not work, but in your image it does work. Probably is because I skipped the script part when I created my two images.
[General Questions and Answers] CXZa:
Do you mean that img I made which was working? And after unpack/repack it doesn't work anymore?
[General Questions and Answers] Holodroid:
Yes.
[General Questions and Answers] CXZa:
Then the tool package might somehow be the cause. So it boots but the adb doesn't work anymore.

So, it's like those two of yours after unpack/repack. Really weird.

You could try to install terminal and try:

su

toolbox start adbd
[General Questions and Answers] Holodroid:
It did not work.

I suggest that you try to build this image as you built the other to see if it works.
[General Questions and Answers] CXZa:
Well, you can try it yourself. (Even if I made it, posting an img file here seems quite difficult.)

I have said what I did and made you zip that only needs those system files added.

Run command is said in the updater-script. and yaffs2 tools usage is in that Chinese guy's webpage.

And when you have succeeded, you can write those steps here and all.. (y)

(which would be nice instead of that "I solved the problem!" that one usually see...)

BTW, you haven't really told me what steps you made so far. I have guess and ask for more info.

It's not the way this works...
[General Questions and Answers] CXZa:
Unpack/repack steps on Linux + Linux tools...

https://www.mtkfirmware.com/content/linux-commands-instructions-tools-unpacking-and-repacking-system-images-mtk-devices-ext4-and
[General Questions and Answers] Holodroid:
Well will try, for making those images I simpy grabbed the folder and dropped it over the repack script. It was a test, but it booted, with this ADB problem.
[General Questions and Answers] CXZa:
That I can understand, maybe, but not that unpack/repack made that working one similar particularly if ver 1 bats were used.

It should not change a thing... though I run them tools in cygwin terminal... :unsure:

Try if symlinks work. In terminal on now not-working one (repacked ) try for example if "date" works.

Does it work on the working one? If both work we know it's not the symlinks...

Should unpack both the orig. (working) and the repacked (not-working ) and compare the file rights ect. in linux/android...
[General Questions and Answers] CXZa:
This I made using above Linux tools in VirtualBox Lubuntu 18.04.5 LTS (Bionic Beaver), last 32-bit version.

Lubuntu 18.04.5 LTS (Bionic Beaver)

CD images for Lubuntu 18.04.5 LTS (Bionic Beaver)

cdimage.ubuntu.com
[General Questions and Answers] Holodroid:
So it works. Will try to do it myself.
[General Questions and Answers] CXZa:
Okay, now I have emulator too. I put above symlinks to your 1.1 image and adb works.

So, it was just the symlinks after all...

Also the 1st one that worked I now unpacked/repacked. It seems to work ok..

Adb that is.. (when using Ver 1 bat. As I sort of expected Ver 2 's symlinks don't work with these...)

MY emulator don't let me open the lock screen... Touch, swipes don't work..
[General Questions and Answers] CXZa:
Tool below works good enough. Otherwise adb is damn slow... 4.2.2- Jelly.. (1.6 is fast, but this tool doesn't work.)

Remote control your Android phone through adb | Marian Schedenig's Website
[General Questions and Answers] Holodroid:
Sorry, it was my fault, I repacked it with the second version of the script the last time.

I have now repacked it with the first version of the script and ADB works.

But I want to ask you. From where you extracted that symlinks?
[General Questions and Answers] Holodroid:
For me, it works.
[General Questions and Answers] CXZa:
From that one that worked...

Only those images that comes with the tool work in my emulator...

What sdk tools version you have? Or is it Studio? Link to it?
[General Questions and Answers] Holodroid:
From the one that you created or from the official Android Developer Phone 1 (ADP1) image?
[General Questions and Answers] Holodroid:
Version 3.0:

Android SDK | Android Developers

web.archive.org
[General Questions and Answers] CXZa:
Yep. Most of them are the same. Later androids have more..

Thanks!
[General Questions and Answers] Holodroid:
Well I created another image that works, but when I created this new image doing all the same, it does not boot.
[General Questions and Answers] CXZa:
Lot more symlinks and meant to be flashed "over" some other ROM. Stock?

Has init scripts that run on boot... you should find that 1st one 1st...
[General Questions and Answers] Holodroid:
What do you mean?
[General Questions and Answers] CXZa:
The stock or older CyanogenMod which to update.

Otherwise lot of apps and lib files might be wrong ones or missing...
[General Questions and Answers] Holodroid:
This?
[General Questions and Answers] CXZa:
How would I know? Should find the old forum thread / webpage were it's said.
[General Questions and Answers] Holodroid:
That is CyanogenMod 3.0, the one that does not boot is CyanogenMod 4.0.
[General Questions and Answers] CXZa:
At least it doesn't have that bash script that backups and restores some files...
[General Questions and Answers] Holodroid:
But it does not have the same structure than the CyanogenMod 3.0 image?
[General Questions and Answers] CXZa:
Looks the same. Same files maybe. Compared one lib file, those were the same.

The one that does that backup/restore on the other hand looks different files.

The md5 sum didn't match... So it will fail to install over these.

BTW, that image "The image I have created.zip", works even in my emulator. I.e touches work!

But the symlinks isn't a complete set. Who ever made the rom, didn't put all to the script...

Same goes with those I ones I put to that zip... Some were missing.

Android's shell and utilities
[General Questions and Answers] Holodroid:
So, any idea?

Here is some log:
[General Questions and Answers] CXZa:
I don't understand logs. But you could save those files mentioned in that .sh file from that working one for example.

And then add them to the target folders before packing it...
[General Questions and Answers] CXZa:
Different kind of ramdisk image...

Both adb and linux methods has that conversion annoyance, amend to edify (or bash)...

This CWM I found is old enough to understand them both. Only but is that flashing doesn't stick.

(Another bug is that adb doesn't work. Tried typical things to fix it, but no help.)

So, I made an update.zip that makes a system image to the sdcard. Both system and sdcard

has to be big enough that files fit. That is why some of my systems have not booted right.

There was files missing...
[General Questions and Answers] Holodroid:
Where you found that? (And how you got custom recovery on emulator?)
[General Questions and Answers] CXZa:
Extracted ramdisk from a CWM recovery and edited it a bit to hide some errors.

Removed my adb edits from the one I put into this package:

Zip2Yaffs2Image-4avd-v1_[cxz].zip

Посмотреть и скачать с Яндекс Диска

disk.yandex.ru

Read the README.txt and see the info folder for links...
[General Questions and Answers] Ricky Divjakovski:
Whys everyone acting like this is so difficult?

dd if=/dev/block/by-name/system of=/sdcard/system.img bs=2048

Your system image is in /sdcard

You can unpack to a folder and add the required symlinks and permissions or you can just write the system image without needing to do any of that
[General Questions and Answers] CXZa:
Added info about keyboard keys that can be used. @Renate probably could fix that ADB issue if any.
[General Questions and Answers] Renate:
No idea. Not even sure what we're talking about.

Sure, that works. Why the blocksize? Why 2048?

We could also just adb pull /dev/block/by-name/system if we have a "truly rooted" adb.

That is, an adb where adb shell gives a # prompt without doing any su.

No idea. Are we talking about adb in recovery?

Either change ro.adb.secure to 0 somewhere or just add your public key to the root of your image.

The second way gives you more security.

Or write your own process to listen to /dev/socket/adbd and popup your own key dialog.
[General Questions and Answers] CXZa:
So it seems... The very old android versions can differ quite a bit from more modern ones.

And emulator can add other aspects that can make things harder...
[General Questions and Answers] xXx yYy:
OP has copied a data collection from somewhere as shown in the picture above: the collection contains 2 folders and 1 ISO file. My guess is that OP probably can't convert contents of folder (we know folders primarily act as containers for other files) named system into an system.img readable by Android.

IMO he simply has to convert the folder stored as NTFS into EXT4 what directly isn't possible: NTFS and EXT4 are file system formats, and they handle file organization and storage differently. However, you can achieve the desired outcome by copying the contents of the NTFS folder to a new folder formatted as EXT4.

If on Windows computer, IMO best method is to use

1. disk management tools like DiskPart or third-party utilities to format an external drive as EXT4.

2. File Explorer to navigate to the NTFS folder named system, select folder system and paste it into a new folder on external drive formatted with EXT4, finally rename that folder to system.img
[General Questions and Answers] Holodroid:
So, for me it still does not boot, I do not know if yours booted.
[General Questions and Answers] CXZa:
What didn't boot?
[General Questions and Answers] Holodroid:
System.
[General Questions and Answers] CXZa:
Which system?
[General Questions and Answers] Holodroid:
The one that did not boot, CyanogenMod 4.0
[General Questions and Answers] CXZa:
Ah, that zip needs some editing, if you mean that restores some aps and libs.

Or did you try copying those files from another rom?

Another... Have to sign zips. Doesn't support edify.

Adb like the other, device offline...
[General Questions and Answers] CXZa:
Tried by editing .sh file. Flashed over the last one. Nope, it didn't boot. There is a reason for those md5 checks.
[General Questions and Answers] CXZa:
Some clues here. And problems it had for some...

Auto-Rotate not working in CM's last couple

Hi, I just received my phone back after warranty repairs (bad SPL flash). Installed Recovery 1.4, then 4.2.8, and no auto-rotate. 4.2.8.1 - no auto-rotate. 4.2.9.1 - still no auto-rotate. I have tried toggling the various settings (Orientation...

xdaforums.com

Some more problems with it. cm-4.2.11.1 hangs?? 4.2.5 might be better..

kleines Problem. (T-Mobile G1 Forum)

Bisher immer Cyanogenmod drauf gehabt und wollte mal auf den WG-build11 wechseln. Nach dem Flash normal gebootet und wieder eingerichtet. (dank apps2sd alle Apps noch da) Riesen Problem jedoch das der Unterpunkt Datensynch unter Einstellungen fehlte und meine Kontakte nicht auf G1 runtergeladen...

www.android-hilfe.de

Actually it's interesting that so much this kind of old stuff is still available.
[General Questions and Answers] Holodroid:
But where we could find it? I grabbed the zip that I have from here:

cyanogenmod-htc-g1 directory listing

And that is the only old CyanogenMod archive that I have found.
[General Questions and Answers] CXZa:
BWT, that "over which" OTA zip has both Amend and Edify scrips included.

So, soon no more "old" type update zips...

Yet another... mass storage - that doesn't work.
[General Questions and Answers] CXZa:
Here is plenty

Google Code Archive - Long-term storage for Google Code Project Hosting.

code.google.com

Nandroid Backup of 4.2.6 works.
[General Questions and Answers] Ricky Divjakovski:
I was on mobile phone, so it was a copy/paste job, but yeah don’t really need the block size.

There’s plenty ways of doing this, adb pull, adb shell, terminal, hell, if you knew what you were doing you could just pull the system folder and repack it with make_ext4fs and create a file with permissions

Either way gets the job done
[General Questions and Answers] CXZa:
Make persistent changes to /system in Android Emulator | Justus Beyer

So, one or two steps less,,,
[General Questions and Answers] Holodroid:
It boots but data does not work.

Here is an experimental image that I created. ADB works, but touch does not work.