yashsingh1/xdaforums huggingface dataset:
[Android General] OrNoX:
Flashing with fastboot doesn't work, I assume it needs to be unlocked... I have a system.img I dumped from somebody else's and trying to flash it with SP Flash Tool but I need a working scatter file... atm I'm getting S_FT_ENABLE_DRAM_FAIL error and havn't had much time to mess with it as I can't be on the PC long. If I can manage to get it to flash, I'll see if I can dump the recovery, etc. and upload it for people to restore with hopefully but we'll see... still on the 15 day period from wal-mart so hopefully I can just get a replacement worst case hah.

EDIT: I see somebody else was able to make a working scatter file and didn't share it, how lovely.
[Android General] ewilley2008:
USB connection

Did you computer detect the tablet right away... I have tried every ADB driver I can find and on 3 different PCs it wont recognize the tablet...

Errors with Unknown USB Device (device descriptor request failed)
[Android General] OrNoX:
Hm nevermind, I thought adb would work the same way but it doesn't.

OKAY, so I was able to fix my device (and posting on it now) :D and will be uploading images + scatter file when I can (which may not be soon). You need to use the usb 2.0 port to flash it, microusb does not work... still won't be able to get custom recovery, etc. on it but at least with stock images and a way to flash people could experiment :P and fix messed up devices

EDIT: The system.img I'll upload has busybox and supersu, I'll see if I can get everything for you guys tommorow. At least stock recovery + system & scatter.

For anybody curious on how to obtain the stuff I got, root the tablet and grab Terminal Emulator. Open it then do:

su
dd if=/dev/block/mmcblk0p5 of=/sdcard/system.img
cat /proc/dumchar_info > /sdcard/firmware.info

Transfer the files off with an sd card or WiFi File Transfer since idk how to get adb to work. Get MTK Droid Tools and modify the config for 6572? I think to use v1.1.2 scatter, load the firmware.info into the modified MTK Droid Tools to create the scatter, save it and modify the platform for the scatter to 8127 and bam, done. To flash it grab the latest SP Flash Tool and plug the usb 2.0 slot on the tablet into the pc, hold volume down and plug in a power source (microusb or the power pin port). Do download mode, and wait a few seconds before starting it otherwise you get a DRAM related error (or that's what was happening with me atleast).

You can just use information from the scatter or firmware.info file to grab the offset + length of other partitions and do a readback to dump them. Obviously the next step would be unlocking the bootloader. Pretty easy to save this device really, assuming you can grab the stock images somewhere :P
[Android General] ewilley2008:
Dont know if this will help any...I found this zip file searching around the web about this tablet

Not sure if the file would be for this tablet.... going by the file name it might ????

RCT6303W87DK-ANDROID5.0-V63-V10.12.0_T8515B_V6.3_PCDDR31G_20151106.zip

303	Checksum.ini

12,820,796	cache.img

34,177,700	userdata.img

1,370,460,164	system.img

5,316,608	recovery.img

4,526,080	boot.img

135,168	secro.img

115,696	preloader_RCT6303W87DK.bin

2,124,431	logo.bin

253,156	lk.bin

512	EBR1

512	MBR

9,000	MT8127_Android_scatter.txt

889,632	tz.img

512	EBR2

125,028	APDB_MT8127_S01_L0.MP1_W15.06
[Android General] OrNoX:
Appears to be
[Android General] ewilley2008:
I can up the .zip somewhere if anyone thats knows ALOT more then me could check them out and maybe could make a flashable update.zip out it… I could look at the files in the .img files with ext4unpacker and they seem to be the same as on the tablet but I dont know enough to to sure
[Android General] Bl4ck Dr4g0n:
How did u get root with supersu? I tried kingroot and the king root to supersu as well as supersu me and ended up with a device stuck at logo screen.
[Android General] ewilley2008:
I did basically that exact same process.. Not sure what would be different.

I used this file - NewKingrootV4.62_C133_B233_en_release_2015_11_24_105203

And then did the king root to supersu
[Android General] OrNoX:
Nobody can make a flashable update.zip except for Alco/RCA (via stocky recovery/sideload/fastboot).

What we can do, is flash it using SP Flash Tool, so people still would need it to fix their devices.

EDIT: Quoted your other post on accident lol
[Android General] ewilley2008:
So far I haven't been able to get the USB connection to work, been trying every trick/hack/edit I can find and it just doest work.
[Android General] OrNoX:
The only thing I have gotten to work is the USB 2.0 port for flashing/fastboot. Maybe for adb we can modify the build.prop for usb charge only to false, and see if it works maybe? I doubt the microusb will since afaik it seems to actually be power only, but the other slot definetly isn't... maybe there's some way we can actually use it.

Is there anything else you would need to modify to get the firmware to use it? I only saw the one value in build.prop... but MTP/adb would be nice to have :/ especially for developers... I guess there's always WiFi adb.
[Android General] Bl4ck Dr4g0n:
Can you point me to which version of king root to supersu you used
[Android General] Jacube22:
Not Coming Till Saturday :(

nope
[Android General] jerryvail35:
Just make your own like I did... Just find to old USB cables and match colors...
[Android General] Jacube22:
I wish I could, but I dont have enough usb cables for that.
[Android General] smartmanvartan:
OK so I figured out whats the deal with the recoveries. The twrp recovery vapirefo made for us is in 800X1280 while our stock recovery is in 1280X800. we do have a stock recovery that works and is in 800X1280, it's the vertical flip one one HERE

So now I have a carliv touch one that almost boots and I'm trying to fix the twrp...

EDIT: So my hunch didn't pan out... I got carliv to boot and the touch is rotated 90 degrees. this one you can navigate with vol up/down and pwr tho.... but I can.t seem to get the fstab to work... anywho I'll try this again tomorrow night but if anyone wants to take a stab it it, THIS is it.
[Android General] Jacube22:
Well that is nice. When I get home I will try (I know pretty much nothing about this though)
[Android General] vampirefo:
What you need is just plain cwm recovery nontouch, the size of a recovery doesn't really matter as far as touch, your screen is rotated, to get twrp to work you have to use the correct flags to rotate it, I am not sure what those flags are.

However if you build just plain no touch cwm you will be fine.
[Android General] NepoRood:
I messed around with [MENTION=4666511]smartmanvartan[/MENTION]'s recovery a little, I noticed some of the fstab block paths are pointing to the wrong block.

Fair warning: I managed to put my tab into a loop while I was making various adjustments to the fstab. Got to where it would come on and go straight to recovery when I plugged it in for flashing.

I had to pull the tab apart and disconnect the battery in order to re-flash a different recovery to straighten it out, anyway, just thought I would share.

Nepo

PS, I have the source code for both Omni 5 and CM 12, which means source for TWRP and CWM. I'm working on doing a build of one or the other (or maybe both :p ) but I still need a LOT of stuff before I can even start...
[Android General] smartmanvartan:
Which fstabs are pointing to the wrong block? The block addresses I entered are the correct ones according to the stock recovery fstab.. thats why i dont get why it won't mount anything but the system....
[Android General] vampirefo:
If you can't figure it out by next week, I am making a guide to build mtk TWRP recovery, now the guide won't cover rotation, I think you can find the correct TWRP flags you need to fix rotation though.

Below is what you need to do, to get ready to build, I will provide a device tree that I use, that works on about every mtk device, you need to make changes for your device, I will cover that.

I can't provide anything till I get back home, but those wanting to learn should follow below and get everything setup.

https://plus.google.com/101944948426591597599/posts/ZJA1xFbu4m7

---------- Post added at 04:58 PM ---------- Previous post was at 04:55 PM ----------

Stock recovery.fstab is fake, get correct mount points from.

/proc/dumchar_info
[Android General] NepoRood:
Awesome, I'm down with the sickness!

Enjoy your vacation, I'll be ready.

Also, if anyone that wants to give this a try and need help installing anything, pm me or email me, and I'll help you set it up (although, it's not really that hard :) )

---------- Post added at 05:37 PM ---------- Previous post was at 05:21 PM ----------

It's like [MENTION=2472806]vampirefo[/MENTION] said, you need to open the terminal emulator and type:

cat /proc/dumchar_info

or C & P this into recovery.fstab:

# mount point	fstype device	[device2]

/boot	emmc	/dev/bootimg
/misc	emmc	/dev/misc
/nvram	emmc	/dev/nvram
/recovery	emmc	/dev/recovery
#/uboot	emmc	/dev/uboot
/system	ext4	/dev/block/mmcblk0p5
/cache	ext4	/dev/block/mmcblk0p6
/data	ext4	/dev/block/mmcblk0p7
#/emmc	vfat	/dev/block/mmcblk0p4
#/backup	auto	/dev/block/mmcblk1
/sdcard	vfat	/dev/block/mmcblk1p1	/dev/block/mmcblk1

I noticed my Acer200 has a "clockworkmod" folder on the sdcard, so I don't know if the above backup will work or not, I haven't tried it yet. But as long as it is commented out, it won't show. Just remove the "#' sign and repack to try it :)

You should add a clockworkmod folder to your sdcard first, I think...

Regards,

Nepo
[Android General] Jacube22:
Attempt to Help TWRP People

-For TWRP Recovery- (though it might work with carliv too.)

After looking into the Github source code a bit, I thought this might help the rotation problem. (I don't do this stuff :eek:)

Make sure you are using the 800*1280 portrait hdpi file.

Make sure portrait.xml is in the recovery.

Another possible solution is to set everything to 1280*800 landscape (since this IS a tablet after all) and see if that works.

The only other things I can think of is to do what Bogram said about flags or whatever.

Also check gui.cpp to see if the recovery is getting your touch position properly.

Otherwise I got Nothing.
[Android General] NepoRood:
You're probably right, however, all the changes you're talking about making are done before you compile from source and can't be made to a working build.
[Android General] bobl61:
Did you find anything that would allow moving apps to sd card? Tried Lucky Patcher, but gives an error when trying to move :(
[Android General] Jacube22:
Just start from source, copy-paste whatever changes you made to make the recovery work, plus these changes, and compile it again.

It can't be that bad ;)
[Android General] Jacube22:
Flashing Questions

I have a question since I am going to flash tomorrow.

1. Plugging the power cable in during step 2 turns the tablet on. Do I have to turn the tablet back off before I flash?

(I am using SP flash tool version 5.1)
[Android General] smartmanvartan:
Yes. For you because the power cable starts the tablet. The preloader mode activates when the usb is plugged in and the power cable is inserted in that order. Just follow the instructions to the letter and it will work. .. the order of operation is key in this process.
[Android General] Jacube22:
So I plug the usb cable in, plug the power cable in, wait for the preloader to activate, turn it back off, and then continue with the process?

Or am I not understanding this correctly...
[Android General] smartmanvartan:
Shouldn't turn on when you plug it in. Unless yours is doing this because of some bug. But if it turns on some reason while your trying to install the drivers in step 2 then yes turn it off with the reset button before going to step 6.
[Android General] NepoRood:
I didn't make the first recovery, [MENTION=2472806]vampirefo[/MENTION] did, and [MENTION=1017124]ewilley2008[/MENTION] got it to boot. I didn't do the second recovery (Carliv Touch), [MENTION=4666511]smartmanvartan[/MENTION] did (somehow, lol)

I have the source code for: CM12 and CM12.1 (which includes ClockWorkMod recovery), and I have the latest TWRP (which can be compiled with CM), but I don't have a device tree for our tablet to build from (waiting on [MENTION=2472806]vampirefo[/MENTION] for that, he's currently busy and I'm patient).

I get what you are saying, and I (and I'm sure the aforementioned) will try everything possible to get us a custom recovery, but it's not going to happen overnight. Over "some night" maybe, but not this one friend.

Just stick with us, and keep your ideas coming, this thread has gone so much further than the OP ever thought it would. In fact, it's gone so far "Off Topic" that we should probably start a new one; the Mod's probably don't care about our "budget" tablet (if they've even noticed), or would have said something by now.

Regards,

Nepo

PS, It won't be "that bad" once we get everything set up :good:

---------- Post added at 06:49 PM ---------- Previous post was at 06:41 PM ----------

You know, taken out of context...
[Android General] FlameBrand:
Nope..apparently none of those type of apps will work with this tablet because it is using the internal storage as /sdcard0 and the actual SD card as /sdcard1. Kind of sucks.
[Android General] Jacube22:
Time to delete 2 GB's worth of wrong firmwares after finding out that I am on the .9 branch thanks to a System.img that I dd'd (weirdest contraction ever) from my tablet half a year ago.
[Android General] smartmanvartan:
Hope you can bring it back. i posted a link to some .9 firmware in post #371.. good luck.
[Android General] Jacube22:
The preloader isn't activating. I have no idea if I installed the drivers correctly or not.
[Android General] smartmanvartan:
Did you flash the preloader when you flashed the .12 version? Also i activated the preloader another way you can try. Plug the usb in the tablet and hold the volume up button. If it works, flash the preloader only then reboot and flash the whole firmware.
[Android General] Jacube22:
I haven't flashed anything. The Usb to micro usb cable detects it as a mtp device, but the usb to usb cable does nothing.
[Android General] smartmanvartan:
Oh.. ok sorry i thought you meant that you had flashed a .12 firmware on your .9 tablet and now it was not responding anymore. With the tablet off, plug the male to male USB cable. Press the download button in SP flash tools. Now plug the power cable in and at that point, your PC should see it
[Android General] bobl61:
I was able to get Link2SD to work by partitioning the card to two Fat32 partitions (ext2,3,4 won't mount) and using link to sd card rather than move to sd card.
[Android General] Jacube22:
Nope. If this helps i accidentally deleted the mt65xx preloader (on the computer) and some other stuff. I now have the Mediatek PreLoader USB VCOM (Android) (COM5) driver and I have the USB Serial Device (COM 4) driver.
[Android General] smartmanvartan:
Were you not able to flash with SP flash tools with those modes ?
[Android General] Jacube22:
No. preloader mode never activated.
[Android General] smartmanvartan:
But you have the devices listed in the device manger? Did you hit the reset button to ensure it was in fact completely off?
[Android General] Jacube22:
Nope. It doesn't show anything.

In other news there is a v73 for the .12 branch on the chinese site
[Android General] smartmanvartan:
Did you try different USB ports?
[Android General] Jacube22:
Tried 4 of them. same result. I think my cable might be like a charge only thing. I'll have to check with some other usb stuff.
[Android General] jerryvail35:
try re-downloading and re-installing the drivers. i had this problem when i first started and it turned out that it was a bad download.
[Android General] smartmanvartan:
So I got carliv 1.5 running good however there's a bug somewhere in the creation or application or the system/data/cache images and they get corrupted causing a loop. I also found that the cube u27gt has the same resolution and I was experimenting with porting the recovery from them and succeeded however, the only one I found was a twrp and I found myself with the same issue with the rotated touch screen. If anyone can find me a premade cwm image for the u27gt, I can port it to ours. They are hard to find because those guys can use the easy tools and have no need to post a link to a full image...
[Android General] Jacube22:
Trying to install them keeps giving me a Code 10 Error "This Device Can not start". Is that ok? and If not how do i fix it?
[Android General] NepoRood:
Glad to hear you're making progress. After I get a device tree for source (I've tried creating my own, but no luck there :( ), maybe I'll be able to build TWRP and/or CWM, and if i can accomplish that, I'll hopefully be able to port CM 12.1 to our device as well.

[MENTION=6654957]Jacube22[/MENTION], are you using the "Signed" or "Unsigned" drivers? Also, your tablet should not be connected to the PC while installing drivers.
[Android General] Jacube22:
Nope, I'm using signed ones. I'll have to change them out.

By the way, can you tell me the name of the inf file (or sys file, if that is what it is) for the MT65XX Preloader? I deleted any mention of that from my computer.
[Android General] NepoRood:
Windows 10? Or are you using something else?

I'll answer your question in a bit, I got to reboot into Windows first...
[Android General] Jacube22:
Windows 10 Pro.
[Android General] NepoRood:
On my PC (Windows 10) I found the following for the MediaTek drivers in Device Manager:

Inf name: oem37.inf

Driver location: C:\WINDOWS\system32\DRIVERS\usbser.sys

Hope this helps...
[Android General] Jacube22:
Is this for the preloader?

you should get the preloader when you plug your tablet in, and then turn it on

Another Question: What brand of cable do you have? (VCOM, Startech, Cables To Go, Monoprice, etc.)
[Android General] NepoRood:
The tablet should

never

be turned on while flashing with the Flash Tool.

With your tablet disconnected from the PC, on the Desktop, go down to your Windows icon (Start Button) and "right click" on it, then choose Device Manager.

After it opens, at the top select the View tab and choose "Show Hidden Devices", go down to: Ports (COM & LPT) and see if there is anything there. This is where the preloader will be located, it'll say: MediaTek PreLoader USB VCOM Port (COM3), your "COM" number may be different, mine is 3. If you have one, uninstall it, the big red X up on the menu bar. Then reinstall using the .exe file that you downloaded.
[Android General] Jacube22:
Do I check the box that says "Delete the driver software for this device"?

And after that, which file do i download? there are 7 of them on the site.
[Android General] NepoRood:
Yes, and I got my cable from Amazon: USB 2.0 Cable, A Male To A Male, Beige, 3ft, High Speed, by Generic (lol)

---------- Post added at 02:22 PM ---------- Previous post was at 02:19 PM ----------

Here's the signed drivers: ClickMe
[Android General] Jacube22:
Problem: how do I install it?
[Android General] NepoRood:
I dont' have them installed, lol, I'm using the "Unsigned" ones (I think most of us are). Do you have your PC set up to allow unsigned drivers?

If so, use this one here (if you don't have 7zip installed, do so. Use the link, don't get it from the Store)

If not, ask Google about "installing unsigned drivers on Windows 10", then use the install tool from the first link, this should get you going.
[Android General] Jacube22:
I'm good.. but Y'ALL ARE LIARS

People said it wouldn't flash with micro usb..... YOU ARE WRONG! IT DID! I didn't use any power cable either.

I must have been in a weird half bootloop state somehow...

Anyways, all I needed was the preloader driver. The usb to usb cable I got was completely worthless.

Everything worked fine. Tomorrow I might start flashing, but I want to get my tablet back running up first.

One of two things caused my bootloop.

1. Using Viper4Droid

2. Enabling zram via zram settings.

Now to tag people just cause:

[MENTION=4666511]smartmanvartan[/MENTION] [MENTION=7237874]NepoRood[/MENTION] [MENTION=7107032]jerryvail35[/MENTION] [MENTION=7276540]Snigglez[/MENTION] [MENTION=1017124]ewilley2008[/MENTION]
[Android General] NepoRood:
That's just wrong, man, just wrong...
[Android General] ewilley2008:
Doing some testing….
[Android General] bnolsen:
I rooted one of these tablets with kingroot and then later switched to supersu. Root checkers tell me its rooted but I haven't been able to copy fonts to the system directory or into the microsoft word fonts directory ( /data/data/com.microsoft.office.word/files/data/fonts/ ). Lack of error reporting on these file managers, etc when copy fails due to permissions is kind of frustrating.
[Android General] smartmanvartan:
Race ya! Lol ;)
[Android General] bobl61:
OOH OOH! :fingers-crossed:
[Android General] smartmanvartan:
View attachment 3655172I too am doing some testing...
[Android General] smartmanvartan:
Have you been able to restore? did you compile from source? that's cool man. :)
[Android General] vampirefo:
Guide is up here, with device tree.

https://plus.google.com/101944948426591597599/posts/GBGn9xy9FEW
[Android General] akeem_da_dream:
anybody mind sharing the sp flash tool? keep getting an error when extracting.
[Android General] jerryvail35:
http://spflashtool.com/download/SP_Flash_Tool_v5.1436.00.zip
[Android General] akeem_da_dream:
was that supposed to be a link?

---------- Post added 22nd February 2016 at 12:12 AM ---------- Previous post was 21st February 2016 at 11:51 PM ----------

thanks!
[Android General] Jacube22:
Who will win in the amazing race? (to CWM of course) Find out when we return (eventually).
[Android General] vampirefo:
Can someone upload dumchar_info
[Android General] Jacube22:
Best Image ever. :good:
[Android General] jerryvail35:
View attachment 3655975
[Android General] NepoRood:
I've compiled several recoveries, boot fine, but touch is still wrong. I did accomplish a successful backup, somehow
[Android General] smartmanvartan:
Are you able to restore your backup?
[Android General] Spartan Legionnaire:
Is there a reason to use the touch based recovery instead of the normal one with volume key?, besides being able to use touch?.

I think will be better to focus on the non touch version first...

Just a suggestion
[Android General] NepoRood:
Couldn't get to restore, lol, but the back up is in my twrp folder. I've got another one compiling now, trying different flags and themes.

[MENTION=2472806]vampirefo[/MENTION], I believe this is what you want:

BOARD_BOOTIMAGE_PARTITION_SIZE := 30932992
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 47710208
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 98566144
BOARD_USERDATAIMAGE_PARTITION_SIZE := 215875584
BOARD_CACHEIMAGE_PARTITION_SIZE := 173932544

I got that info following your guide...

---------- Post added at 12:36 PM ---------- Previous post was at 12:27 PM ----------

I believe that's why [MENTION=2472806]vampirefo[/MENTION] is up to, he mentioned it last week...
[Android General] smartmanvartan:
This is what I'm focusing on...

Carliv 1.5 it won't backup properly and restoring results in bad system, data and cache partitions
[Android General] NepoRood:
Grrr, I'm getting so close, lol. Touching one side activates the other, and having trouble locating where the slider is actually at. I'm going to DL your file and look at it, before I go back to linux to compile another twrp
[Android General] smartmanvartan:
I dont get it....

i look at the restored partitions with aroma file manager and everything looks like it's been restored but after a restore, it wont boot up... and I think all of us working on getting recovery working are getting the same bug. right? I wonder if it's not a security measure in the stock rom...
[Android General] jerryvail35:
have you tried hitting the reset button after recovery. just like after flashing firmware?
[Android General] smartmanvartan:
Yes I tried performing a factory reset, tried formatting data and cache. Tried dalvik. System won't boot after a restore. If I flash the system image with sp flash tool everything is fine. So the recovery backs up boot, recovery and bootloader properly but the ext4 partitions.. Not so much