Android Kitchen help - Moto X Q&A

so i am trying to setup a ghost file so i can use the kitchen to make roms but i am having some issues setting up the mount points i was wondering if anyone could send me the file so i can just drop it in because i am trying to use the template and the recovery.fstab file but i am having some issues
thanks

Related

Windows directory is READ ONLY. fixable?

hello folks,
I'm running a TILT with HTC ROM.
I am trying to make some changes to system files located in the
windows directory. attributes are read only and I cannot find a
way to make changes to that. I've searched the forum but didn't
find anything. if anyone knows of a way to delete/change the read only
attribute on winmo 5 windows directory please point me in the right
direction.
thanks!
If the items you are trying to modify are built into the rom, you can see them but they can not be modified.
The items specifically i'm trying to modify are
the 0_in and 0_out files with in the windows directory
that are used for keyboard sliding sounds. i've read
previously about people using customer slide sounds
and just replacing the ones inside the directory with
the newly formed files.
I asked the question more generically incase anyone
else wanted information on the same subject for
different reasons.
update: Changed rom files!
I was doing some digging and I figured out how to
change over files that are baked onto the rom.
I did so by using Totalcommander. which is a shareware
file system. says it also has a built in reg editor
but ive yet to figure out how to open that
feature...if anyone else uses totalcommander
let me know how to start its regediting functions.
I havnet used total commander in a while, but i believe its in a directory "//" with no name.
GinjiVitis said:
The items specifically i'm trying to modify are
the 0_in and 0_out files with in the windows directory
that are used for keyboard sliding sounds. i've read
previously about people using customer slide sounds
and just replacing the ones inside the directory with
the newly formed files.
Click to expand...
Click to collapse
Two thoughts - I've got a control panel for the sliding sounds where I can change the sound associate with the slider. Is that not working?
Are you trying to replace the files using File Explorer or something like Total Commander? FE won't do it, but TC or one of the extended file explorers should. Note that you won't really be replacing a file in ROM, and if you ever delete the one you add the one in ROM will "magically" reappear.
If you want to overwrite files in the Windows directory, Resco File Explorer does this beautifully!
Fin
bump...im having trouble editing files on my phone from activesync and i want to know how i can disable the "read only" on these files...can anyone help?
Use total commander
Click on the file properties and uncheck "read only".
Edit or overwrite them

Problems with my custom Rom?!

Hi all,i have a big Problem with my custom Rom.
First if i install my Rom with Rom Manager i run always in the same error
E:Failure at line 6: symlink toolbox SYSTEM:bin/cat
i have toolbox in my system/bin folder and i think my update-script is also ok!?
Then i have a another Problem with deodexing InfoAlarm.apk(system/app) and core.jar (system/framework) any ideas? Tool i used is dsixda's kitchen.
with the newest smali baksmali(1.26) 1.25 hasnt worked too.
Many thanks in advance!
At a guess - you need to provide more details if noone has been able to answer your question
post up the script and your rom somewhere and link to it and let people actually have a hack at whats wrong - without knowing what your doing - no one can tell you where you went wrong...

[Q] SQF seems to not be mounting

I have been trying to add sqf to my rom and no matter what I do have the sqf file and the right kernel and added the init.rc stuff the sqf files dont seem to mount :/ would anyone be able to have a look and help me??

creating a zip theme

Hi fellow members,
I have a question about creating zip files.
Can i take the zip file gtkansan, made for the keyboard, extract it and add the folder structure for my theme apk's, dump it back in the zip file and then install it?
or is there more to creating an install able theme zip?
Thanks
Hi All, I'm hoping someone is kind enough to lend me a hand with my zip file.
I have used several working zip files and replaced only my files left the structure the same, and always get error 6.
I read that it could be a unix encoding issue and to use notepad+++ ( i only use notepad+++)
So i then started doing all my zip modding in linux.
I still get the error 6.
can some please help?

[Q] How to enable mass storage in CM 10.1 ?

Does anyone know how to enable USB Mass Storage on our phones under CM10.1? I've searched around and found this thread. But since I'm not familiar with changing build.prop I don't dare to do it myself. There are some CWM .zip files around to enable it, but they are on other phone's forums and I'm sure they just replace/change the build.prop so it's definitely not a good idea to flash those on a different phone than the ones they were intended for....
Long story short, does anyone know how to enable it on ours?
TIA!
Update on the process:
I was able to edit the build.prop according to the instructions, but that alone doesn't seem to do anything.
So I decided to try the next step, but where it tells me to do the changes below I wasn't sure what to do.
Thom75 said:
in framework-res.apk/res/xml/storage_list.xml
where oryginal line look like this:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:maxFileSize="4096" />
after change look like this:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:allowMassStorage="true" android:maxFileSize="4096" />
Click to expand...
Click to collapse
I was able to find the framework-res.apk file, copied to my computer and tried to open it with an XML editor... looked too complicated so I left it alone.
Does anyone know how to mess with that?
Open the .apk file with WinRar
-Drag the file you want to edit on your computer
-Edit the file on your computer
-Delete the old file in Winrar from the apk file
-Put the new file from your computer back in Winrar and save the "new" apk file
-Put the new .apk file on your smartphone
Before you install the new .apk file take a Root Explorer and look at the permissions of the old .apk file and set this permission on the new once...
I hope i could help you
Sivvis said:
Open the .apk file with WinRar
-Drag the file you want to edit on your computer
-Edit the file on your computer
-Delete the old file in Winrar from the apk file
-Put the new file from your computer back in Winrar and save the "new" apk file
-Put the new .apk file on your smartphone
Before you install the new .apk file take a Root Explorer and look at the permissions of the old .apk file and set this permission on the new once...
I hope i could help you
Click to expand...
Click to collapse
Thank you very much for your help! I didn't know apk files were just a compressed library of other files.
Now I am stuck trying to edit the "storage_list.xml" file... I tried to open with a few different xml editors, but could not get clean text like the example before. Any sugestions?
I attached the file below:
Apoena said:
Now I am stuck trying to edit the "storage_list.xml" file... I tried to open with a few different xml editors, but could not get clean text like the example before. Any sugestions?
Click to expand...
Click to collapse
Well, how about decompiling the .apk file with APK Tools instead of just opening it with WinRar? :laugh:
Yes, now I get a clean, editable, decompiled xml file.
I'll try editing both when I get home tonight and will post the results.
I guess this is a problem because of the emulated layout. There is a trick with setprop sys.usb.storage.config mass_storage but it does not work.
Keep me informed if you find something valuable (i'm on original CM10.1, latest nightly 0423 actualy).
Ok, here's the update from last night:
I started over since I flashed the nightly, which is good so I restarted with a clean slate.
- Edited build.prop - OK
- Copied framework-res.apk to my computer
- Decompiled framework-res.apk
- Edited storage_list.xml
- Recompiled framework-res.apk with new storage_list.xml
- Copied framework-res.apk back to my phone
- Deleted original framework-res.apk
- ...... instant restart & bootloop before I could paste the new framework-res.apk in its place
No big deal, just restored a nandroid backup I made before messing with anything and I'm back in business.
Apparently you can't mess with the framework-res.apk while your phone is on (with the OS running)... so now I need to research the right way to push/pull these files from ADB while on CWM recovery. I appreciate if someone could point me in the right direction since I'll be busy at work today.
To be honest, my gut feeling tells me that this is not going to work anyway. But look at what I learned so far... two days ago I wouldn't even think of compiling/decompiling anything... this is what XDA is all about, right?
Imho, the framework_res.apk and various tricks are all enabling or disabling a sys.usb.storage.config key. I'm not understanding nor finding informations about CM10.1 emulated layout, and if there are any reasons to forbid mass storage (because, yes, it seems it is disabled because it is not compatible).
This is something i have hard time with. On Android, you have tons of improvement for rom or kernel XY, but generally undocumented. If you apply this 'per device', the information is very fragmented and difficult to grab.
I was looking for a simple brief on base MTD partitions layout for LG P880, it seems the only way to have this is to dig KDZ files. Perhaps a Wiki would help the wannabe contributers like me to start ?
Any Solution For This Problem ??? I Can't Transfer Any Files To My O4X , What's The Point Of Cyanogenmod Then ??????????????
Nooby305 said:
Any Solution For This Problem ??? I Can't Transfer Any Files To My O4X , What's The Point Of Cyanogenmod Then ??????????????
Click to expand...
Click to collapse
Flash the latest nightly. MTP is working and you cab transfer files that way.
Sent from my tree using a ladder
effectively, if you are flashing for USM, you should stay on LG stock.
I know that the topic got a little old but I'd like to refresh it since more people (e.g. Ubuntu users) could be interested in enabling Mass Storage.
What I've done is:
1) pulled /system/framework/framework-res.apk
2) decompiled it with APKtool
3) added
Code:
android:allowMassStorage="true"
in storage_list.xml
4) builded a new apk
then I've rebooted my phone into recovery and (@Apoena you may be interested in it - there is a possibility to access /system through adb connected with phone in recovery mode) pushed the new framework-res.apk. I've also changed the entry in build.prop to
Code:
persist.sys.usb.config=mass_storage,adb
Everything seemed fine until I've tried to reboot the phone: instead of CM boot logo I got a black screen. Anybody has an idea what went wrong (maybe something during recompilation of the apk)?
And of course sorry for any language mistakes, I'm not a native speaker

Categories

Resources