yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] prscott1:
Ditto here - If we could only find a way to kick off a "userinit.sh" on boot - we'd be all set.

We tried modifying the init.rc but it reverts back on reboot too.

Any other ideas anyone?
[Android Software/Hacking General [Developers Only]] prscott1:
run these steps from shell:

setprop gsm.sim.operator.numeric 310260

setprop gsm.operator.numeric 310260

setprop gsm.sim.operator.iso-country us

setprop gsm.operator.iso-country us

setprop gsm.operator.alpha T-Mobile

setprop gsm.sim.operator.alpha T-Mobile

kill $(ps | grep vending | awk '{print $2}')

rm /data/data/com.android.vending/cache/*

Then you'll get market paid apps.

I went ahead and created a gsm.sh script that I stored in gscript so I can run it when I need to use market since these values disappear after reboot.
[Android Software/Hacking General [Developers Only]] omarahum:
This seemed to work for me.
[Android Software/Hacking General [Developers Only]] juched:
Had the same. Simply run marketenablers and pick T-Mobile US to get US paid apps.
[Android Software/Hacking General [Developers Only]] masman:
where do I get the USB driver to flash it onto the ROM?
[Android Software/Hacking General [Developers Only]] Christian Buchner:
The driver usually comes with the flashing utility
[Android Software/Hacking General [Developers Only]] jcasmar:
secbulk >>>>>driver usb
[Android Software/Hacking General [Developers Only]] prscott1:
Autostart

For those who want to execute a series of commands on startup - check out Autostart in the market. I'm using it now and it works very well. you can do your setprop commands and any other commands you want issued upon system startup after a reboot or shutdown.

I've attached an example autostart.sh for anyone who wants to download the Autostart.apk from the market.

After you install the app, then from adb after you connect to your pad:

adb remount

adb shell mkdir /data/opt

adb shell chmod 4777 /data/opt

adb push autostart.sh /data/opt

adb shell chmod 4777 /data/opt/autostart.sh

then reboot.

after reboot, watch for superuser to ask for permissions (if you don't see it reboot again).

note, each time that you change the autostart.sh and push it, you have to reset the permissions on autostart.sh (chmod).

The example I attached will simulate a telephone (setprops on all the gsm* properties), it will start swap if you have a swap partition, and it will mount your ext3 drive to /system/sd .

these are just for examples. Please modify for your own needs.
[Android Software/Hacking General [Developers Only]] rhandsome:
Folks you guys are doing a great job getting the zt-180 up to par. For those that are interested I have verified that you can indeed tether your unit to an adhoc network (Android to Android). I left instructions in a previous post. I can now connect at will to both Infrastructure and adhoc. I modified my approach slightly by using the GScript application to create a widget that would execute the 2 ifconfig commands in a shell script located on my home screen. I've included the link to the utility below. Please keep up the good work.

xdaforums.com/showthread.php?t=486486
[Android Software/Hacking General [Developers Only]] sam_bris:
Ubuntu

OK having a go at flashing this thing. I use Ubuntu but have a XP install in virtualbox. I cannot find the device. Anyone had any luck with Ubuntu or do I need to find an actual XP machine?

I also found this idiots guide on how to flash, and get market working that I was asking for earlier; w w w. tinyurl.com/25t53ll
[Android Software/Hacking General [Developers Only]] Christian Buchner:
Has anyone looked at various "Frozen Eclair" backports available for some phones, like Samsung Moment? It is supposedly the "stable" JVM from Android 2.2 (Frozen Yoghurt) backported to Android 2.1 (Eclair).

If any fearless and adventurous soul would like to risk of needing a complete re-flash... please take a bullet for the team ;)

I have found the following binaries floating around the net

FrozenEclair_Beta3.2-for-evo.zip
jit-eclair-beta-update.zip
SDX-Samdroid-Frozen-Eclair-Beta-3.2.zip
SDX-Samdroid-Frozen-Eclair-Beta-7-RC11.zip

I would consider building some Android source code myself, but so far I do not know how to cross compile this source code for a the ARM platform. I am lacking the build tools and the experience. I didn't find any "Android from Scratch" guide so far-

The SDX Samdroid zip files contains half the operating system (huge file size) so one would need to extract only the dalvik VM and libs from it and test.
[Android Software/Hacking General [Developers Only]] mariovi:
Virtual box didn't work for me but VMWare player did, well sort of, i manage to connect via USB but my Win7 VM kept blue screening.

I ended up installing a fresh Win7 in a second disk
[Android Software/Hacking General [Developers Only]] nottechieenuff:
My Zenithink Paperweight

OK. Admittedly I'm not a techie, but I've tried & tried to update this device without success, mostly I think because I can't load the driver. I'm tired of trying and more than that, I'm tired of reading about how easy it is for everyone else.

Anyone want to take my Zenithink paperweight and do the upgrades for me? I'd be glad to pay for the time invested. PM me if interested, and thank you.

Jim
[Android Software/Hacking General [Developers Only]] omarahum:
Wasn't easy for me, don't think I've slept for two weeks now, but yeah, I finally got it working this morning. I was able to flash the ROMs ok (except when 0818 came out, didn't change zImage_cui to zImage in the burntool window, I just changed the folder names which screwed everything up, and took a while to find out that was my problem. Then wasn't able to install market for a while because I didn't know where you were supposed to insert your Android ID, and adb sometimes wouldn't connect until 10 minutes after the tablet booted (which I didn't realize because after the adb -d tcpip 5555 command, I'd do the adb connect {IP}:5555 and it always said it was already connected until I tried to run a command). Then after 0827, everyone said that their tablets booted with no Force Errors on it (mine did too till I started putting my apps on it) and didn't get it working right till about 12 hours ago. But I've had this situation before, where I thought everything was ok, then after a few boots, everything would get screwed up till I cleared the dalvik cache, and would be ok again for a bit, then screwed up again after a few more boot ups. But I've been rebooting the tablet all day now and it seems fine (one or no Force Close errors on bootup, some apps still cause it when I try to run them), so I am going to go get some sleep now.

Update: Of course, I spoke too soon, cold booting (first boot after it's been off for a while) still causes errors, but after a reboot, works fine.
[Android Software/Hacking General [Developers Only]] shaunty:
I am planning to get one but then I need to know if it's user friendly. I hate complex gadgets. I have not seen an ipad closely. Please advise. Thanks a million!
[Android Software/Hacking General [Developers Only]] synonymous:
Don't buy this. It is a very nice product if you know what you are doing, but it can be a real hassle to get working the way you want it to.
[Android Software/Hacking General [Developers Only]] twinturbomike:
After upgrading to the latest firmware, I cannot get Market to fully work correctly.

Market will launch, but:

I only see Top Free and Just In apps.

No Top Paid apps.

Downloads never actually start

Initially I was getting the typical server connection error but then it managed to resolve eventually. Not sure what I did there.

Then MarketEnabler didn't seem to fix my issue above, nor did clearing Dalvik cache.

The cellular connection icon always displays no signal, even when spoofing a connection.

Market doesn't show up in the Settings > Applications section so I can clear the cache.

I used my same ID that I had used on the previous firmware.

I originally ran script 1.1, upgraded to 1.2.

Any ideas what could have gone wrong or what might get market working again?

Thanks!
[Android Software/Hacking General [Developers Only]] kasrul:
Can you give us a description of what you are doing?

1. Do you have the burn tool with the driver secbulk.sys (came with the first firmware)

2. Are you using a 32bit window version the driver only works on a 32 bit windows version

3. After connecting the USB lead to the OTG port (small usb on your pad next to the big USB port) are you holding the Big button at the front while putting the power on?

Let us know what you are doing and we can try see if you are missing any steps etc.
[Android Software/Hacking General [Developers Only]] Christian Buchner:
Don't reboot after MarketEnabler. The effect is per-session only ;) Do you now see any paid apps?

Also you're long-tapping T-Mobile (US) and selecting "fake this provider", right? Afterwards the first tab (actual settings) should state a 6 digit SIM card operator number beginning with 3.

If for some reason your Superuser.apk is not working, the SIM card operator number stays at the default 5 digit number beginning with 4. I've had this happen to me before. However MarketEnabler would not indicate any problems or give any error messages.
[Android Software/Hacking General [Developers Only]] omarahum:
To view Market in Settings/Application Manager, you need to bring up the menu (soft menu on screen or left switcher hard key) select filter, and set to All, then all your apps should show up. Then you can go to Market and clear the cache. After that do Market Enabler and make sure that the SIM# changes on the first screen after you fake a provider (as stated in posts above, SuperUser needs to give permissions to Market Enabler for it to work correctly). Then Market should work with Paid Apps showing.
[Android Software/Hacking General [Developers Only]] fun_:
noone try to flash customized system.img yet?

I tried on my X5A(not ZT-180, sorry) and it works fine.
[Android Software/Hacking General [Developers Only]] jdsemler:
At this URL, it looks like there's a 0828 firmware somewhere. The link provided shows a ROM0809, which isn't 0828. Is there a new version out somewhere?
[Android Software/Hacking General [Developers Only]] patmtp35:
RPM seems to work on
[Android Software/Hacking General [Developers Only]] wwilde:
Hi Jim, Where are u located? I can help you out if your in OZ, PM me com reply here.
[Android Software/Hacking General [Developers Only]] jlcid:
Yes FlashLite run, :)

Don't works well with all applications in Flash into the browser ... but it works.

Thanks
[Android Software/Hacking General [Developers Only]] Christian Buchner:
I downloaded your latest patches.

There seems to be an alternative to creating a clean system.img from a system folder on a host PC. That is: running nanddump on the device to collect the contents of the /system partition after applying the RPMscripts.

This thread links to arm binaries for the mtd utilities. I may later try if they run for me.

http://www.forensicfocus.com/index.php?name=Forums&file=viewtopic&p=6542538

EDIT: The mtd utils that are already present on 0827 ROM are useless. The nanddump utility will simply not execute ("not found" error). So I tried my first baby steps with the android NDK - and behold the nanddump.c source code compiled just fine with it. I am attaching the binary for your enjoyment.

But we're lacking a /dev/mtdchar0 device on the pad. The existing mknod binary doesn't work as well, so I cannot create the missing device node. ZENITHINK! What were your engineers thinking?

Here is how I proceeded

adb push nanddump /data/bin/nanddump
adb shell
# rm /system/bin/mknod
# /system/busybox mknod c 90 0 /dev/mtdchar0
# /data/bin/nanddump -f /nand/system.img -b -n /dev/mtdchar0

Now the only major issue is that my image is the full size of the system partition, so unused blocks are not getting filtered out. I need to write a utility to remove any unused blocks from the image.
[Android Software/Hacking General [Developers Only]] Zap!:
RPM hasn't been around this thread in like two days, my guess is he's very busy working on it. :)
[Android Software/Hacking General [Developers Only]] mazeboef:
Anyone experiencing Wifi problems after firmware upgrade to 0827?

I can't get my wifi network to connect anymore. it just disconnects.

I didn't have any wifi problems on 0818
[Android Software/Hacking General [Developers Only]] omarahum:
When I initially flashed I too did have a problem, not sure what I did that made it work again, but I cleared the dalvik-cache and I also long pressed my access point and defined what type of connection it was instead of it being automatic, then rebooted, then worked fine for me. Not sure if I did something to fix it, or if it's one of those things that takes a few cold boots to work itself out.
[Android Software/Hacking General [Developers Only]] rpmccormick:
Actually I've been busy working on... work. :)

What's with the NAND dump? Can we restore it to a device, like an alternative to flashing system.img (which we are close to cracking but still haven't cracked yet)? How?
[Android Software/Hacking General [Developers Only]] jtbnet:
I'd suspect the admin had meant to drop a copy of the 0827 ROM there along with his/her instructions for adding market... but ended up dropping a copy of the 0809 rom that was already posted in another folder...
[Android Software/Hacking General [Developers Only]] prscott1:
Hate it when that happens! :)

Has anyone tried the Autostart app with a script? Mine is working great - my market is setup perfectly every time I reboot without having to do anything. :D

I highly recommend it.
[Android Software/Hacking General [Developers Only]] mazeboef:
Yes got it working now thanks
[Android Software/Hacking General [Developers Only]] Christian Buchner:
By the way I found another person who has patched unyaffs to restore file and directory dates correctly. He also lists the limitations of unyaffs quite accurately.

http://www.bernhard-ehlers.de/projects/unyaffs.html
[Android Software/Hacking General [Developers Only]] bhood:
Admittedly, I've not read through all 85 pages for this answer, but... ;)

Has anybody actually been able to purchase from the Market with the RPMScript fix? I can download free apps with no problem, but when I attempt to purchase, after selecting "Credit card", the "vending" app crashes.

I tried using the EnableMarket app and selecting the correct fake, but that didn't help.

Honestly, I'd rather purchase than...use alternate means. :(
[Android Software/Hacking General [Developers Only]] Christian Buchner:
My NAND dump contains all FF in the last 2/3rd, so I could just cut that away (FF is the default value after erasing a NAND flash anyway). I think the NAND dump could be restored, but it would no longer "unyaffs" compatible. Unyaffs was written to decode fresh images made with mkyaffs2image.

But forget about the NAND dumps.

:D:D:D I report SUCCESS in creating a bootable system.img using mkyaffs2image. :D:D:D

This is with all the latest patches from the naobst web site. Thank you, fun_ ! One absolutely needs to use the -f flag, or the pad can't load the libc.so and reboots instantly. Now I am SO going to clean out the file system mess left by the Zenithink engineers.
[Android Software/Hacking General [Developers Only]] Zorflieg:
I use an xp vm under Mac VMware fusion 3 and it flashes fine. I had to focus on the vm the first time i plugged it in so it routed the usb there. Also if you do that it asks "Do you want to always connect this device to the vm automatically from now on" so if i'm not paying attention it'll still connect to the vm.

Anyway not sure how that translates but in theory i think you should be able to get it working fine.

Z
[Android Software/Hacking General [Developers Only]] fun_:
good page. all problems that I found are described:)

some problems are fixed in my patches, but I don't think I need to provide 100% bug free program.

If you found a problem in my patches, fix it freely.

----

tools to dump/restore NAND and mkyaffs2image/unyaffs *on Android* are already available everywhere. it's very common tools. see nandroid and/or another recovery images.

if you don't need OOB data, cat(1)/dd(1) is enough to dump NAND. flash_image is often used to write NAND.

yaffs2 partition image can be made by mounting it and run mkyaffs2image. to restore it, erase NAND, mount it, then run unyaffs. of course it can be read/write directly by mtd-utils.

all things I described here are comon method. only page/OOB size (4096/128) is device specific.

EDIT:

Q: no /dev/mtd/mtd* on ZT-180?
[Android Software/Hacking General [Developers Only]] rpmccormick:
What did you compile on? If it is cigwin or Android, can you please post the .exe? Actually, just post it no matter what and tell us what OS we need to run it. Thanks.
[Android Software/Hacking General [Developers Only]] Christian Buchner:
I compiled the mkyaffs2image utility on my OpenSuSE 11.1 because Linux is quite reliable with keeping file permissions. Here are the fruits of this labour:

Download link:

http://www.mediafire.com/?96oe79ii668t2ly

Here are my mods to this system.img as far as I remember

-removed some preinstalled apps

-added big brother's apps

-txpower fix

-tether fix

-using 8k WiFi firmware

-added a good busybox version

-ARM11 optimized non-JIT DVM (runs Quadrant benchmark just fine)

-cleanup of some broken executables

-permanent US market fix (still requires implanting of Google ID with RPM script)

-USB keyboard layout

Most credits go to RPMcCormick, I just repackaged this into a new image. Thanks go to fun_ for the yaffs2 related tools patches.

IMPORTANT INSTRUCTIONS: Clear your Dalvik cache first. Shut down the pad. Now flash my modified system.img (you may keep your existing /data (user) partition). If you're upgrading from pre-0827 versions, also flash the original uboot and zImage from 0827 so you have the correct kernel.

If you haven't setup your Google account previously, do the clockwise 4 corner tap to get past the Android welcome screen and set it up now. Market should just work GIVEN THAT YOU INSTALL A GOOGLE ID (this may still require RPMMcCormick's script or some manual sqlite magic!)

You will need 7-zip to decompress the download. I will keep a low profile on this image - I have no intentions here to compete with the modding community or to get in trouble with big brother. So I am not going to advertise this image much further.

Maybe one more update will add a STABLE backported Froyo Dalvik VM w/JIT enabled - if I find one that works. But that's about it. Create your own images if you don't like my settings.

I might get myself one of these Beagleboard development units just for fun. These have decent 3D and video performance and a really fast Cortex A8 CPU. Check out the youtube videos on the Beagleboard and Android.
[Android Software/Hacking General [Developers Only]] kaiza1:
WOW, iam in vacation, and iam suprised, what you found out.

But did someone runs other uboot ?

Did someone already runs a debian or equal linux dist?

Its very interesting because i think Android is the wrong System for the Device.

If someone already did, please contact me or answer here in thread
[Android Software/Hacking General [Developers Only]] exquisitus:
It would be nice if somebody posts a howto.
[Android Software/Hacking General [Developers Only]] prscott1:
Yes, I have - my credentials carried over from my google account I have on file from my various android phones. Hmmm, let me think about what the problem may be. Do you have an android phone already in use?
[Android Software/Hacking General [Developers Only]] prscott1:
Dude - you rock! I'm lining up to be guinea pig on anything you come up with!

:D
[Android Software/Hacking General [Developers Only]] msg1285:
I can confirm that the .img does work to boot. I just flashed with the new .img and had success, GREAT WORK.

Too bad I don't know $hit about code so I can't do anything but be a test subject.:mad:
[Android Software/Hacking General [Developers Only]] Drew442:
+1 on beagleboard XM. Looks pretty cool...

If someone was making a tabled based on that SoC rather than this POS zt-180 i'd grab one...
[Android Software/Hacking General [Developers Only]] catttman:
Very nice...I notice that it takes a few hours for the market to Waken up then its back

I dont use the bootup animation it stops my auto conection to my wifi

other than that this pad is now good to have "Thanks to all !"

:)
[Android Software/Hacking General [Developers Only]] sitelister:
If anyone is working on the image, I'd be REALLY grateful and willing to even pay a bounty for someone that can fix the damn audio drivers - that is, make AudioRecord not crash.
[Android Software/Hacking General [Developers Only]] mazeboef:
img does boot indeed, but i still have the Market server unavailable error.
[Android Software/Hacking General [Developers Only]] bhood:
I also have a 7" GPad G10, and it has also been logged into the Market using my Google account (it came with the Market on it, unlike the ZT-180). However, I've not attempted to purchase anything using it, and it defintely has a different androidID than this ZT-180 (I generated a new one from the 1.6 AVD for it).
[Android Software/Hacking General [Developers Only]] bhood:
Yeah, I'm getting the same message with 0827 and RPMScript1.2. No market now for me with this combo.

UPDATE: I looked a bit deeper into this, and the command to view the androidID:

adb shell sqlite3 /data/data/com.google.android.googleapps/databases/accounts.db "select * from meta";

Is returning an error after following the script instructions:

SQL error: no such table: meta

So, I suspect, at least in my case, the androidID isn't even getting into the database, which is causing the connection to the market to fail.
[Android Software/Hacking General [Developers Only]] Zap!:
Outstanding work! Just one thing wrong with mine so far though. I logged on fine with my Google account, but after that it says "Server unavailable. Please try again later." Any ideas?
[Android Software/Hacking General [Developers Only]] jtbnet:
It's done... Successful completion... in Chinese on screen :) ... You need to reset using insert reset hole on top...
[Android Software/Hacking General [Developers Only]] nottechieenuff:
Thanks

Thanks for the translation. I assume then that it's normal that the screen freezes on the EPAD logo and I need to reset it for a hard boot?

Jim
[Android Software/Hacking General [Developers Only]] jtbnet:
Yes... As expected from my last dozen flashes...
[Android Software/Hacking General [Developers Only]] nottechieenuff:
Thanks everyone... now on to the next issue.

Got the updates in. How about Flash, Reade, & Real Player. Keep trying to load then fails. I can't play any video at all.

Jim
[Android Software/Hacking General [Developers Only]] notsaw:
I have same problem. Always get "Server is not available, please try again later" in Market, while my android cellphone can access market just fine.

Even after setting to us/T-mobile using "MarketEnabler", still doesn't work.

I do have the androidId...

adb shell sqlite3 /data/data/com.google.android.googleapps/databases/gls.db "select * from meta";

androidId||80xxxxxxxxxxxxxxx6

Any idea?
[Android Software/Hacking General [Developers Only]] mazeboef:
Hm i just turned it off left it, and turned it back on this morning and market works.

Anyway thanks Rpmccormick and img creator for making it easier :-D

Starting to love my device even more
[Android Software/Hacking General [Developers Only]] kasrul:
The ePad boot screen coming on is normal the thing I check to see if the flash process finished is the settings button are disabled during the process and enable after it finishes. After that you can just disconnect and reset the pad
[Android Software/Hacking General [Developers Only]] kevmartin:
Hi all,

Can someone please clarify about the cable required to flash the tablet?

I saw here it has to be USB to OTG cable. I don't have one of those, but do have a USB to USB cable - can I use that? Or is there some problem with the USB port on the pad?

Thanks.