[Q]Android SDK Emulator rooting/building system.img - Android Q&A, Help & Troubleshooting

Hey,
i have a problem with android sdk emulator. I want use it to test custom roms for i9001 but first i must root it and install custom recovery. The problem is i cant root it. I cant find guides how to root android 2.3.3 in emulator and those which i find doesnt work.
So i decided to extract the system.img. After one hour i found the tool unyaffs and extracted the system.img and added superuser and su. But my problem i doesnt find a tool which packs the system folder to system.img The only thing i founded was a ext4 tool with many files and where i must use some commands but cmd shows always some errors.
Is there any tool which can pack system folder to system.img which isnt so tricky ? Or any guide how to root android 2.3.3.
Many people in forums say that the roms in android sdk are prerooten or rather the terminal has root privileges but when i type in su terminal always show me the message: permission denied
Have you any idea what i can do

Has anybody a idea ?

nobody?

There's a post about modifying the system.img of the emulator here: http://malsandroid.blogspot.co.uk/2012/03/modify-emulator-systemimg.html
EDIT: Although I don't think you'll be able to install a custom recovery on the emulator. It doesn't have a recovery device.

but why in many posts they say that the emulator can ?play? custom roms. i dont know how i should write it.
In vielen anderen Posts wird beschrieben das es möglich ist eine custom roms im emulator zu installieren

I've never heard of anyone running custom ROMs with the emulator, but I assume if you were able to do it you'd replace the .img files with ones from the custom ROM, possibly slightly modified.

I also want to care about this issue. I have 1 rom, I pulled the file system, for example: system.rfs or system.img.ext4 or factoryfs.rfs. I added, customize the apk and want to put it back and want to be first to run the emulator software to check for errors before running
Core issues, problems I faced
1. how to repackage the system files that (system.rfs, system.img.ext4, factoryfs.rfs, system.img)
2. Using software to run the emulator

thinh182009 said:
i also want to care about this issue. I have 1 rom, i pulled the file system, for example: System.rfs or system.img.ext4 or factoryfs.rfs. I added, customize the apk and want to put it back and want to be first to run the emulator software to check for errors before running
core issues, problems i faced
1. How to repackage the system files that (system.rfs, system.img.ext4, factoryfs.rfs, system.img)
2. Using software to run the emulator
Click to expand...
Click to collapse
did you manage to sort it as im in same situation tried every were and dont seem to get any were with everything i found can get a basic emulator to work but cant get galaxy note 2 rooted stock rom to work any help would be usefull

Related

How can i root my prestigio PMP5080B Android Pad on gingerbread 2.3.1

Help!!
i been surfing the internet trying to find a way of how i can root my device. so far ive had on luck. i have tried gingerbreak but i don't think this has even worked. does anyone have any ideas of how you could root this particular device. if you have any suggestions or know how you can, i would be very grateful.
HOWTO - root PMP5080B
There is a way to root the tablet.
But it it does not root the runnning version, it roots the update image.
So if don't have the most actual firmware try this:
(maybe you can flash the firmware even it is not newer, but i don't know how)
Todo (Windows PC necessary):
At first load the latest firmware and unzip it:
h t t p : / / w w w .prestigio.com/info/product/downloads?NODE_ID=61101103718510974&ITEM=110706112617507776
Download the Wendal tool:
h t t p s :/ / docs.google.com/leaf?id=0B8h...RjZjFmODdiZTQ1
Then follow this steps:
1. Unzip the Wendal tool, you get a folder named "RK29xxImagetools_v2.1".
2. copy the update.img from Prestigio firmware download in the "RK29xxImagetools_v2.1" folder and rename the file to "wendal.img"
3. start "Runme.bat"
4. press "1", you get the message that you have to rename your file. Since you have already done this before proceed. The batch file starts, make sure you dont see any errors.
5. press "2" followed by "Enter". The rootet image will be created automatically
6. end the programm with "3"
7. in the "RK29xxImagetools_v2.1" you will find a file named "wendal-new.img", copy it to your SD card and rename it to "update.img".
8. put your SD card in your tablet, you will get a message to update your firmware
9. the tablet reboots, flashes the new firmware
10. be happy with your root access
Still having problems.
i have done what you said for me to do but when i rename the firmware to "wendal.img" and run it for some reason it keeps saying i haven't put the firmware in the folder when i have. do you know what how you can sort this out.
cheers
Did you unzip the firmware download?
Tried, tested & confirmed working
Just like to note that the software used will give you a warning about placing the update.img in the correct folder and renaming it even when it has already been done. You just have to press enter!
I have 5080B and i want to root it, but on ICS stock rom. Problem is, i cannot use wendal tools cause it can't add su and superuser.apk into /system ("no such directory") and even earlier i used to root gingerbread with these tools it is half-root - /system not rw, but superuser works
i saw update 2.0.2 from prestigio, pre-rooted, but i want to root this, newest version, 2.0.3
i have linux setup running and i tried mounting system.img but i can only add su, and nothing else cause there's no space...
also, how do i boot recovery from the device itself? i tried vol- and power key but there is an image of an 'destroyed' Android bot, no options there at all
Same problem - want root on Prestigio PMP 5080B
Just got a Prestigio PMP5080B running ICS 4 and want to root the tablet. I read from the preceding message that thhe method discussed here doesn't seem to work with it. Any ideas would be most welcomed here too.
By the way Hi!
Ziggy
help
remoh said:
There is a way to root the tablet.
But it it does not root the runnning version, it roots the update image.
So if don't have the most actual firmware try this:
(maybe you can flash the firmware even it is not newer, but i don't know how)
Todo (Windows PC necessary):
At first load the latest firmware and unzip it:
h t t p : / / w w w .prestigio.com/info/product/downloads?NODE_ID=61101103718510974&ITEM=110706112617507776
Download the Wendal tool:
h t t p s :/ / docs.google.com/leaf?id=0B8h...RjZjFmODdiZTQ1
Then follow this steps:
1. Unzip the Wendal tool, you get a folder named "RK29xxImagetools_v2.1".
2. copy the update.img from Prestigio firmware download in the "RK29xxImagetools_v2.1" folder and rename the file to "wendal.img"
3. start "Runme.bat"
4. press "1", you get the message that you have to rename your file. Since you have already done this before proceed. The batch file starts, make sure you dont see any errors.
5. press "2" followed by "Enter". The rootet image will be created automatically
6. end the programm with "3"
7. in the "RK29xxImagetools_v2.1" you will find a file named "wendal-new.img", copy it to your SD card and rename it to "update.img".
8. put your SD card in your tablet, you will get a message to update your firmware
9. the tablet reboots, flashes the new firmware
10. be happy with your root access
Click to expand...
Click to collapse
Hey, i have done everything right, but after unzipping the update.zip, i find only the boot.img file not the update.img file...and even after renaming it to wendal.img, the runme.bat program says FAILED...any clue how this can be fixed?
TVMALOPE.IM said:
Hey, i have done everything right, but after unzipping the update.zip, i find only the boot.img file not the update.img file...and even after renaming it to wendal.img, the runme.bat program says FAILED...any clue how this can be fixed?
Click to expand...
Click to collapse
If you want, i can share my rootet version 1.0.26 for you, i still have the old .img file
But actually i am using this version on my pad:
http://x--t-e-a-m.blogspot.de/
I think it is far better than the original firmware (root included, it is Android 4.1 !)
Italian people did it, so maybe bing translator can help you
http://www.microsofttranslator.com/bv.aspx?from=&to=en&a=http://x--t-e-a-m.blogspot.de/
help
thanks but im new to android so i cant understand, can you send me your .img file...because i just want to copy straight to memory card and get root access, please...my tab is PMP7170B3G
TVMALOPE.IM said:
thanks but im new to android so i cant understand, can you send me your .img file...because i just want to copy straight to memory card and get root access, please...my tab is PMP7170B3G
Click to expand...
Click to collapse
The img file is for PMP5080B, so it won't help. Wrong thread, sorry

[Q] MTK6573 custom recovery and backups / Stock Boot, Recovery + Scatter included

Phone is a Star X19i
Now I'm looking at getting a system to allow me to back up the rom and re-flash if needed.
Post 4 has attachments of my boot, recovery and scatter files.
Old issue: (Solved)
Stupid thing I did I renamed the mtklockscreen.odex to mtklockscreen.odex1 just as a test in a half asleep phase to see if I would get the stock lockscreen loading.
Suffice to say the phone no longer boots.
Really don't think I can get into ADB and rename the file to get the phone booting again unless anyone knows a way.
Android was 2.3.6 and I asked the seller if it was possible to get the rom incase anything like happened which they didn't.
So anyone have any ideas?
I have attached the stock recovery and boot images made with cat and a scatter file I made to post 4.
As I have no idea about modifying these for hard root can anyone take a look?
I don't know the specifics of the phone, but if you can go into recovery mode maybe you can get adb working, or use a flashable zip to rename the file by installing it from recovery (just need to edit the zips' updater script)
dxppxd said:
I don't know the specifics of the phone, but if you can go into recovery mode maybe you can get adb working, or use a flashable zip to rename the file by installing it from recovery (just need to edit the zips' updater script)
Click to expand...
Click to collapse
I got into built in Factory mode and can see the file I renamed through ADB and android commander but cannot rename it back due to not having hard root access.
I also have a copy of the boot and recovery partitions 5 and 6 respectively I made in the adb shell yesterday as I was half looking at getting hard root access.
ren mtklockscreen.odex1 mtklockscreen.odex
ren: permission denied
I read you can do a custom recovery with root using SP Tools still so can anyone help me do this?
I know about system root etc and stuff and have flashed roms before on other tablets and have been a PC I.T tech (wouldn't think it due to the stupid mistake) but this recovery and scatter files etc is kinda new to me.
I have a scatter file now I just made if anyone is interested in helping me.
Yes I have a MTK6573 but the scatter file came from the MT6516 Rom Studio which I read works the same for the 6573.
Attached is also my stock boot and recovery partitions I made with cat yesterday if there usable to anyone to help.
Well I got it working and fixed.
I had to go into adb shell and su and mount the file system as writable, as I have used linux before I didn't know about android and what needed to be done and permission locks etc.
The stock boot, recovery and scatter files will remain on this thread if anyone wants to help create or find a recovery which can allow me to create backups and flash custom roms.
I may be able to provide a dump of android 2.3.6 for those that want it once I'm provided with a backup solution as I have read a few people wanting this updated android rom.
This got too close to what I would like liked with bricking this phone.
And I'm not comfortable unless I have a rom backup of this.
Rooting Advice: For anyone with a MTK6573 on Android 2.3.6 trying to root but having issues with super one click make sure you only turn on USB debugging after Android has loaded and just before you plug the usb cable in to run super one click.
I have seen a few thread and posters here about not being able to root the phone and this is the cause that debug needs to be switched on right before you connect and try to root.
Original seller has agreed to send the firmware and flashing stuff on cd for me so I can upload it for you all.
This is a win for MTK6573 Star X19i owners as I'll have the updated 2.3.6 Gingerbread firmware to release for you all root modify etc in a week or so.
Be careful with ROM studio. I believe it is not compatible with MT6573.
You want to read this: http://bm-smartphone-reviews.blogspot.com/2012_04_01_archive.html
cybermaus said:
Be careful with ROM studio. I believe it is not compatible with MT6573.
You want to read this: http://bm-smartphone-reviews.blogspot.com/2012_04_01_archive.html
Click to expand...
Click to collapse
That's what I read and did to get my scatter as I used cat then used the program linked in that thread to generate the scatter.

[Q] Please repackage and Run the emulator file system(system.rfs....

I also want to care about this issue. I have 1 rom, I pulled the file system, for example: system.rfs or system.img.ext4 or factoryfs.rfs. I added, customize the apk and want to put it back and want to be first to run the emulator software to check for errors before running
Core issues, problems I faced
1. how to repackage the system files that (system.rfs, system.img.ext4, factoryfs.rfs, system.img)
2. Using software to run the emulator
(Sorry for my very bad English)

[Q] Cube U27GT - Help with Rooting a Stock Rom and can we get a forum?

Dear Admins,
Could we get a forum setup for the Cube U27GT WiFi version? I dug around on the site a bit beforehand but didn't see one, I apologize if I missed it and please direct me there if I did.
I have this tablet and I am doing some initial basic firmware development for it and want a proper place to start putting threads.
Dear Dev Community,
I can't root this bloody thing... At least, not the rom itself. Let me explain...
I can flash the stock rom from Cube and that can be rooted using Kango Root. --Fine...
However, I can't figure out how to replicate this when I make my own rom.
Thus far, here is what I have attempted...
1. Setup dsixda's excellent kitchen on my Ubuntu workstation.
2. Unpack the rom, clean things up, manually put the boot image into the dsixda unpacked working rom folder, run dsixda's root functionality (which add SU binary to xbin and SuperSu apk file to app folder as well as do some things with the boot image file).
3. Rather than using repack with Dsixda (which makes an update.zip image which I can't use because the stock recovery environment on this device can't flash zip update files and I can't for the life of me figure out how to get and or make a working CWM or TWRP recovery image for this unit)...
4. What I do is I run commands in linux to unpack the stock rom to another directory and mount that directory, then clear out a bunch of folders and then manually copy in my files from dsixda's working folder, then repackage up my unpacked stock rom into a new system.img file.
5. Then copy my now modified boot image, system image, and also userdata image (I modify that as well as that is where most all of the chinese bloatware is loaded from) to my SP_Flash_Tool, generate new checksum.ini file and flash normally...
What I get as a result...
1. As long as I am really careful with how I copy files into my new image, the new system flashes okay (if I am not careful, after flash USB storage for some reason has a format error and the system will boot but can't mount USB storage and other odd issues ensue as a result).
2. Assuming everything flashes okay, and no issue with USB storage partition, I have SuperSU installed and when I go to use an app (ES File Explorer or Root Checker) that require's root, I do get the prompt. However none of the root functions actually work and Root Checker tells me I am not rooted.
That is as far as I have got. So as a result, I have a really nice, westernized, cleaned up rom but with no root.
Anyone have any ideas?
This is my first adventure into mod'ing MTK roms so I am sure I am doing all kinds of things wrong . I had a good bit of experience on Rockchip SoC's before this though.
Kind regards and thanks in advance!
Roman
Figured it out!
So I finally did the following rather hackish work-around...
1. Flash stock firmware...
2. Root with Kingo Root
3. Enabled ADB
4. Attach to PC and fire up MTK Droid Tools
5. Take a full backup
6. Modify the system image from the backup and make changes
7. Put that in new firmware flash package
8. Flash new firmware
YAY - Cleaned up rom, modified, with root!
Once I get it all packaged up and uploaded to mtkfirmware.com I will post a link for anyone that wants a cleaned up rom with root!
The only downfall of the above method is that it absolutely requires that the developer have a device on hand because you can't just root the stock image file (at least, I couldn't figure out how... - bleh...
Kind Regards,
Roman
Dear roman,
Thanks for your hard work.
I have a simple question (I think) and if you have the time to reply or -any other android guru- I would be thankful.
My later issue was with a U27GT cube tablet, but I have others, one for each kid, and this is more of general question.
I am reading this and other forums about how to flash tablets from PC. My question is:
Can the flashing process be done from a SD card?
Thanks a lot and regards,
Fernando
SKorea

[Q] Extract Compressed File to SD Card Director on First Boot

Hey guys,
I'm currently in the middle of developing my own ROM for an S802 based TV box (M8). I am close to releasing but I have a few issues, one very much in particular. I am trying to find a script that will extract a .tar file to the /sdcard/ directory on first boot of the ROM but I'm having a hell of a time. I am a reseller of these boxes and I'm trying to get my Kodi userdata to extract into the proper directory, /sdcard/Android/data/, on first boot but nothing I do seems to be working. Currently I'm using a script called installApk.sh. From what I've gathered it works fine for extracting .tar files to non-sdcard directories but when I attempt to point the extract path of the tar to the /sdcard/ directory it fails. I've also tried decompiling the kodi apk, injecting all of my userdata directly into the apk and re-signing but that causes all of the addons to fail. I'm wondering if any of you have run into a similar issue or know a solution to my problem. Any help is appreciated. Thanks.
Mag
th3magpi3 said:
Hey guys,
I'm currently in the middle of developing my own ROM for an S802 based TV box (M8). I am close to releasing but I have a few issues, one very much in particular. I am trying to find a script that will extract a .tar file to the /sdcard/ directory on first boot of the ROM but I'm having a hell of a time. I am a reseller of these boxes and I'm trying to get my Kodi userdata to extract into the proper directory, /sdcard/Android/data/, on first boot but nothing I do seems to be working. Currently I'm using a script called installApk.sh. From what I've gathered it works fine for extracting .tar files to non-sdcard directories but when I attempt to point the extract path of the tar to the /sdcard/ directory it fails. I've also tried decompiling the kodi apk, injecting all of my userdata directly into the apk and re-signing but that causes all of the addons to fail. I'm wondering if any of you have run into a similar issue or know a solution to my problem. Any help is appreciated. Thanks.
Mag
Click to expand...
Click to collapse
see Introduction : How to build an Android ROM - XDA-University
[GUIDE] [how to] CREATE OWN ROM [FOR ANY ANDROID DEVICE] [FOR N00B] [EASIEST METHODS] by lokeshsaini94
This thread will be moved to Android Q&A, Help & Troubleshooting

Categories

Resources