yashsingh1/xdaforums huggingface dataset:
[Desire General] Emilml:
I should probably have posted this a while ago, this is the file I flash after every upgrade of the rom.

Here is a quick run-through of what it does and how to change it:

1. Changes the SU binary from the SuperUser.apk one to the "insecure" one by _n0p_ and also removes the SuperUser.apk

delete("/system/bin/su");

delete("/system/xbin/su");

delete("/system/app/Superuser.apk");

delete("/system/app/SuperUser.apk");

2. It removes the things I don't use in the Rom

delete("/system/app/Apollo.apk");

delete("/system/app/DSPManager.apk");

delete("/system/app/LatinIME.apk");

delete("/system/app/LatinImeDictionaryPack.apk");

delete("/system/app/UserDictionaryProvider.apk");

delete("/system/app/Calendar.apk");

delete("/system/app/GoogleCalendarSyncAdapter.apk");

delete("/system/app/VoiceSearchStub.apk");

delete("/system/app/Gallery2.apk");

delete("/system/app/HTMLViewer.apk");

delete("/system/app/MediaUploader.apk");

delete("/system/app/SoundRecorder.apk");

delete("/system/app/Talk.apk");

delete("/system/app/Trebuchet.apk");

delete("/system/app/PicoTts.apk");

delete("/system/app/QuickSearchBox.apk");

delete("/system/app/ApplicationsProvider.apk");

delete("/system/app/GoogleEars.apk");

delete("/system/app/VoiceDialer.apk");

delete("/system/app/Provision.apk");

delete("/system/app/LiveWallpapers.apk");

delete("/system/app/LiveWallpapersPicker.apk");

delete("/system/app/NoiseField.apk");

delete("/system/app/HoloSpiralWallpaper.apk");

delete("/system/app/MagicSmokeWallpapers.apk");

delete("/system/app/VisualizationWallpapers.apk");

delete("/system/app/PhaseBeam.apk");

delete("/system/app/PhotoTable.apk");

delete("/system/app/Talkback.apk");

delete_recursive("/system/tts");

delete_recursive("/system/usr/srec");

delete("/data/app/com.google.android.marvin.talkback-1.apk");

delete("/system/media/bootanimation.zip");

3.Then it pushes the new files (bootanimation.zip and su binary)

package_extract_dir("system", "/system");

package_extract_dir("data", "/data");

ui_print("- Setting permissions");

set_perm(0, 0, 06755, "/system/xbin/su");

Basically it runs the updater-script located in META-INF\com\google\android\ using the update-binary from VJ's rom.

Then after those changes are made, it pushes the files from system\media and xbin to the phone.

All you have to do is to extract the 2 folders in the zip, change the updater-script and files in system\ to your liking.

Then rezip the 2 folders (meaning only the 2 folders, not those 2 in another folder) in a zip file using no compression (I use 7-zip).

And then you can just flash it from 4ext like you do your roms.

Just a quick note, most of this is hacked together from other things, that I have found on the forums over a long time.

Also I take no responsibility yada yada yada you get the idea, and always do a nandroid first! :)
[Desire General] csytracy:
Thank you for your reply.

Another question: There seems to be a bug when play flash video within the browser. Is that just me or are there any work around？

I install the apk in the following thread. It make the default browser work well on nexus s with cm10 but not on our desire.

http://xdaforums.com/showthread.php?t=1774336
[Desire General] andrew_rm:
Same problem as above...video not working from browser
[Desire General] jmcclue:
lol u pretty much remove all the things that i do... haha. will give this a go 2moro :thumbup:

Sent from my HTC Desire
[Desire General] deino:
My question: I have an acient HTC Desire - rooted, s-offed, everything - running CM10, Jelly Bean 4.2.1. Sometimes it's slow, sometimes it lags, but the one bug that really screws my mind, is the battery. My battery dies around 29-30%. I mean what the hell, that is just not cool...

Example.

My phone went under around 40%. When I plug it on charger & trun it back on, it says 0%. What can be done about this? Wiping battery stats didn't help, is there any battery calibration magic floating around on the interwebz, that actually work - not just placebo effect? Thanks.

ps.: I read about some battery calibration method, that only works with specific kernels (I think CM7 ROMs were mentioned), and takes about 5-6-7 hours? But the topic said, that I'd have to use a CM7 rom with that specific kernel after calibration, or the new rom would just "write over" the work of the calibration, so I'd be where I started.

(I posted this question in another thread, because I mistook it for this one... looks like my memory is the first one to go with old age. Well, at least I still have my looks.)
[Desire General] ntn_labs:
In general:

- in recovery, You should delete battery stats

- leave your phone off the charger until it dies, charge turned off untill full, turn on, continue to charge until full (and leave it on charger for few hrs...). That will teach your phone and battery how they are.

- And if it's still a problem, look here: High battery drain.
[Desire General] Swoop_aeg:
Status 7 error

So I tried flashing the latest [ROM/4.2.1] [Jan 23 2013] VJ CM10.1 | Jelly Bean 4.2.1 - v4.6 today. I've had the 4.3 installed for a few weeks, with no problems. Just wanted to upgrade and see if there was any cool new stuff with the latest... But, it won't flash, and it says status 7 error.

What have I done wrong here? If the old .zip worked, why didn't the new one work?

And when I tried restoring my old ROM after wiping, the check sum was wrong. I ended up having to flash my first nandroid backup (2 weeks old) of the 4.3 ROM to get it going again.
[Desire General] dvsk69:
Did you change hboot in between? Make sure you're on stock hboot and you have an ext4 partition. Also check if your download is corrupt.

Sent from my HTC Desire
[Desire General] Swoop_aeg:
Nope, didn't change HBOOT, still on 6.93.1002. Download checks out. Running on a EXT2 partition with 256 MB, so that might be the problem. Guess I'll have to re-partition and do everything from the beginning... I just found it weird that 4.3 worked fine, but 4.6 gave an error.

Thanks for your help!
[Desire General] ntn_labs:
a2sd not working in v4.6 bug

It looks like v4.6 has issues with a2sd. First posted by whipping, apps cannot be moved to sd card.

No fix yet.
[Desire General] ntn_labs:
Flickering bug +bugfix

Seronez reported problem with flickering, Neo69ADSL says a fix is as easy as changing the wallpaper to a non animated one.

PS: I'm still testing if this is a fix for all the flickering or just the one in recent apps.
[Desire General] Simon-G:
Chrome Bug fixed in Chrome Beta

Hi,

the scrolling problem is fixed in the actual Chrome Beta. Install it from Play store:

https://play.google.com/store/apps/details?id=com.chrome.beta&hl=de

Greetings

Simon
[Desire General] ntn_labs:
Yea, I saw it somewhere, will try it myself and put a solution here :)
[Desire General] csytracy:
I think there is a bug in playing video within browser. Don't you think so?
[Desire General] ntn_labs:
More details? I use Chrome browser and no flash plugin. What is Your configuration?
[Desire General] ntn_labs:
How to reassign HW keys

x3m.zone has found an interesting way how to reassign functions for HW keys:

You can assign a function to each hardware button on the phone.

You must edit bravo-keypad.kl file, from system/usr/keylayout

This is very useful for those who have broken the hardware BACK button.

I have this problem, and now I assigned the function "back", to the search button (which I never use it)

Modified bravo-keypad.kl with back/search buttons reversed:

key 102 HOME
key 107 ENDCALL WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 116 POWER WAKE_DROPPED
key 139 MENU
key 158 SEARCH
key 217 BACK

Modified bravo-keypad.kl with both back&search buttons set as back key:

key 102 HOME
key 107 ENDCALL WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 116 POWER WAKE_DROPPED
key 139 MENU
key 158 BACK
key 217 BACK
[Desire General] csytracy:
I know how to describe this. when use CM10 with other device (nexus S), I can play video in browser either "always enable plugins" or "disable plugins". That means nexus S can play the video either with flash or with html5.

However, in our desire, with these roms (CM10VJ, CM10.1VJ, EV, PA), when playing video using flash, I saw the video directly goes to the end or gets stuck (works inappropriately). when playing with html5. I hear only the sound and cannot saw the image.

BTW, I use default browser in the rom and install the lastest flash plugin (seach with this forum). I think when I check "always enable plugins" in the setting of the browser, I am using flash, when checking "disable plugins" and choose UA to "iphone" I am using the html5. Am I right?

so from my perspective, our roms have some problem with video playing within browser (flash and html5). (Not like what I said before:"we have problem with flash", because even using html5, we still cannot saw the video.)

edit: what's more? You can download a video with format ".flv", which is a flash video, and try to play it with any app you have (I use moboplay and diceplay). Both of them only give out sound and no video. (I test this in CM10VJ3.1) and .mp4 can be played properly.
[Desire General] ntn_labs:
Well, all I can say is I use Chrome and Youtube app (and MX player) and I usually dont have problems with videos. It takes a while to play a video on a page, but if it loads well, I can see picture and sound. I don't have flash installed and I haven't done really anything to the Chrome config so... Dunno where is Your problem. If You have time and wanna try something then try to flash a phone with default browser and Chrome and no flash plugins and see if it makes any difference...
[Desire General] csytracy:
MX player do play the .flv file properly. And I found some website video will ask me to play them in MX player. In that way they are played smoothly. But for those can only be play in the web browser, even I use chrome and delete the flash plugin, they are not displayed.

Anyway, thank you for your answer.
[Desire General] ntn_labs:
This is my setup of a Desire with CM 10.1 JB 4.2.2 V5.0 PreAlpha

Download VJ's JB 4.2.2 v5.0 with GApps

Remove from ZIP:

/system/app/Apollo.apk

/system/app/Browser.apk

/system/app/Calendar.apk

/system/app/DSPManager.apk

/system/app/HoloSpiralWallpaper.apk

/system/app/MagicSmokeWallpapers.apk

/system/app/PhaseBeam.apk

/system/app/QuickSearchBox.apk

/system/app/VisualisationWallpapers.apk

/system/tts/lang_pico/de-*

/system/tts/lang_pico/es-*

/system/tts/lang_pico/fr-*

/system/tts/lang_pico/it-*

/system/tts/lang_pico/en-GB*

/system/media/audio/ringtones/CyanTone.ogg

Size before removal: 155 063 707 bytes

Size after removal: 142 608 834 bytes

Flash tampered ZIP

Goto Play Store, update aything needed

Activate a2sd with terminal

Reboot

Setup like this:

Settings -> Wireless & Networks -> More -> Mobile networks -> Access Point Names -> internet AP:

APN type: default

Settings -> Launcher -> Homescreen:

Homescreens: 3

Default screen: 2

Stretch screens: Yes

Search bar: No

Scroll Wallpaper: Yes

Wallpaper quick render: Yes

Settings -> Lock screen:

Maximize widgets: Yes

Screen security:

Vibrate when unlocking: No

Settings -> System:

Status Bar:

Battery status style: Circle with percentage

Clock Widget:

Weather panel:

Display weather: Yes

Update interval: 30 minutes

Calendar events:

Display next event: Yes

Event calendars: (select all)

Event lookahead: 1 week

Event location: Show all

Event description: Show all

Settings -> Profiles: No

Settings -> Security:

Owner info: NTN Labs

Settings -> Language&Input -> Android keyboard settings:

Input languages: English, Slovak

Vibrate on keypress: No

Sound on keypress: No

Settings -> Date&Time:

Use 24-hour format: Yes

Choose date format: 31/12/2013

Settings -> Performance:

Processor:

Maximum CPU frequency: 1113 MHz

Set on boot: Yes

I/O scheduler:

zRam: 18%

Allow purging of assets: Yes

Kernel samepage merging: Yes

Memory management

16bit transparency: Yes

Surface improvement: Disable dithering

Settings -> Developer options:

USB debugging notify: No

Device hostname: Baraka

Allow mock locations: No

Reboot

Install-happy:

Google Search

Chrome

Gmail

Google Maps

Google Calendar

PS: performance by Emilml
[Desire General] ntn_labs:
Alarm ringtone in v5.0 +bugfix

There seems to be a bug in v5.0 that hides the alarm clock ringtone setting. kees1982 suggest to edit your alarm in landscape mode.

PS: the developer is aware of the problem and promissed it will be fixed in the next version.
[Desire General] Milos_SD:
This bug is present in v5.0 too. Installing some apps from play store, report "Insufficient storage available". It doesn't report for all apps. Some apps that are more then 30MB are installing, and some that are only 300KB are not. Strange... :confused:
[Desire General] ntn_labs:
Gonna test this tonight.
[Desire General] Milos_SD:
You can test it with Dropbox app. I tried to install it more then 10 times without success. I cleaned dalvik+cache, rebooted phone few times, cleaned cache and data for playstore and services, but nothing helped.
[Desire General] ntn_labs:
Went on a install spree, installed more like 10 apps, most of them about 10 megs no problem. Then installed dropbox, no problem.
[Desire General] ntn_labs:
The first post (AKA howto begin with VJ's ROM)

Before all this, You should backup Your SD card and everything on Your phone. There's no way back.

Download

download Your ROM from here

Phone preparation

Phone should be

unlocked

with S-OFF

with custom recovery

with stock hboot

If You don't know what this means, DO NOT CONTINUE !!!

SD card preparation

Partition Your SD card (it's recommended You do it with recovery tools) like this

512 MB ext4

rest FAT32

Actual installation

copy the zip with the ROM to the SD card into the FAT32 partition

reboot into recovery

wipe the phone

locate in the recovery menu and execute

factory reset (this should wipe system, cache, data and sd-ext partitions)

wipe dalvik cache

wipe battery stats

install custom ROM

reboot

after reboot open terminal and type

su

allow the security popup

type a2sd install

answer questions with

y

n

y

after reboot connect to internet and leave the phone for few minutes

Customisation

Customize it the way You like

this is a good example

this is a good example
[Desire General] ntn_labs:
Advanced reboot options missing in v5.1

If You are missing "reboot into recovery" and such options in v5.1, dvsk69 suggest to enable this in developer menu. It's called "advanced reboot" and it should be ticked.
[Desire General] ntn_labs:
How to check if a2sd is working

Because there is a lot of confusion, let me try to summarize how a2sd will affect Your phone (in other words where to look if it's working or not).

The checklist:

in terminal type "df" and look for these lines

/system :: system partition, size should be about 250 MB, the more free the better

/sd-ext :: ext partition on SD card, size should be according to Your partitioning

/data/app :: app folder linked to SD card, size should be same as /sd-ext

check /etc/init.d/ folder for anything saying "apps2sd", including permissions "-rwxr-x---"

in terminal type "mount" and look for these lines

/dev/block/mmcblk0p2 /sd-ext ext4 rw :: sd-ext partition is ext4 and mounted rw (same goes for /data/app)

/dev/block/vold/179:1 /storage/sdcard0 vfat rw :: storage partition is vfat and mounted rw

in terminal type "a2sd diskspace" and see what does it report. It should be the same as all info You obtained with steps above.
[Desire General] AlexRose23:
Yep, that seems to be right. But noticed something: with every app installed the free space decrease; for example, right now it says: 31mb used and 116mb free;

But, if I try to run "a2sd xdata" (bind mount /data to /sd-ext/xdata ) android displays the free/occupied space correctly .

Don't know if there are some side effects, but everything seems to work just fine! :)
[Desire General] ntn_labs:
Forget about the settings - apps screen. It's not working with a2sd, it just confuses You.

What I don't understand is "a2sd xdata" ? You know that a2sd must be started on boot, otherwise it's not working at all. How come You can type "df -h" and I can't? :) Are we on the same ROM?
[Desire General] Milos_SD:
For me it is working 50:50%. Everything is reported OK, and it does transfer apps to sd-ext after first reboot from activating a2sd. But for some reason, some applications don't want to install, reporting "insufficient storage available". And the apps that report that when installing them, are alweys the same ones, they don't change. I can install as much apps as I like, only if that specific apps are not among them. Can't remember now which apps are in question exept dropbox, but there are many more from the list of 56 apps that I install. Even small ones (about 100KB) don't want to install, but some that are big (more then 30MB) install fine.

They don't even want to install on clean ROM, after activating A2SD with y/y/y options (I haven't tried y/n/y, becouse I need a lot of apps installed, this is my main and only phone). :)

I checked all scripts from /system/etc/init.d/ and they are identical to the last line in v4.4 and v5.1 (I used program Kompare on my PC). So the problem are not the scripts them selfs, but something else that changed in version 4.6 and above. Even the /bin/a2sd script is indetical in both versions.
[Desire General] ntn_labs:
Hard to say, I know Google apps are really stupid when it comes to installation. Most of them go to /system and not to /data/app. Google Now needs big amount of free space even it's a small app. Chrome needs 50 megs just for his libs. All this goes into /system.

But If You need more space, go for yny and make a 1,5 Gig partition.

Regarding the checklist: still working on it ;)
[Desire General] AlexRose23:
Right now, I'm using CM10 VJ - v3.1;

I don't know why "df -h" is not working. What's the error exactly? For me it's working no matter if I'm root or not;

About "a2sd xdata, as i said before, it just bind /data to /sd-ext/xdata(from description).

A couple of days ago, when I installed this rom, after "a2sd install" with "y/n/y" - I tried to run again from console "a2sd xdata" - after this step(restart, etc etc) the settings-apps screen seems to display correct data.
[Desire General] Milos_SD:
I have 2GB ext4 patition. :)

Well, Google apps don't make any problem at all. And like I sad, it happends even on clean ROM (135MB free on internal memory). But it doesn't happen on v4.4 and below (havent tried 4.5 but it should work, becouse no changes ware merged from CM10.1 in that version).
[Desire General] ntn_labs:
Okay, It's different version. In 4.2.1 and higher, I guess VJ changed busybox to a smaller version that doesn't support all the things (my guess).

Anyway, a2sd xdata will fix bad size reporting because it will link root folder to sd-ext. Originally, a2sd mounts only few folders inside folder /data to /sd-ext. But that doesn't solve the problem.
[Desire General] ntn_labs:
A2sd recommends size from 512 MB to 1,5 GB :)
[Desire General] Milos_SD:
Yes, that must be the problem. ;) It worked without problems, all the way from v2.5 (that is when I started installing this ROM) to v4.4. :)

I will reinstall v5.1 tomorow and post logcat, "df" and "mount" output.
[Desire General] Milos_SD:
As promised. :)

I didn't do a full wipe, becouse it is the same with full wipe and without it. Then I installed two apps that want to install, and removed dropbox and tried to install it again (that app doesn't want to install).

Logcat paste:

http://paste.ubuntu.com/5567535/

df paste:

http://paste.ubuntu.com/5567541/

mount paste:

http://paste.ubuntu.com/5567543/

dmesg paste:

http://paste.ubuntu.com/5567544/
[Desire General] ntn_labs:
Df looks the same, except that 2G :)

Filesystem Size Used Free Blksize
/dev 202.2M 48K 202.2M 4096
/mnt/secure 202.2M 0K 202.2M 4096
/mnt/asec 202.2M 0K 202.2M 4096
/mnt/obb 202.2M 0K 202.2M 4096
/system 250M 224.2M 25.8M 4096
/data 147.6M 62.9M 84.8M 4096
/cache 40M 1.2M 38.8M 4096
/sd-ext 472.6M 182.5M 290M 1024
/data/app 472.6M 182.5M 290M 1024
/data/app-private 472.6M 182.5M 290M 1024
/data/app-asec 472.6M 182.5M 290M 1024
/data/dalvik-cache 472.6M 182.5M 290M 1024
/storage/sdcard0 3.2G 238.1M 3G 4096
/mnt/secure/asec 3.2G 238.1M 3G 4096

Mount looks strange:

rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock3 /system yaffs2 ro,relatime 0 0
/dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mmcblk0p2 /sd-ext ext4 rw,noatime,nodiratime,barrier=1,data=writeback,noauto_da_alloc 0 0
/dev/block/mmcblk0p2 /data/app ext4 rw,noatime,nodiratime,barrier=1,data=writeback,noauto_da_alloc 0 0
/dev/block/mmcblk0p2 /data/app-private ext4 rw,noatime,nodiratime,barrier=1,data=writeback,noauto_da_alloc 0 0
/dev/block/mmcblk0p2 /data/app-asec ext4 rw,noatime,nodiratime,barrier=1,data=writeback,noauto_da_alloc 0 0
/dev/block/mmcblk0p2 /data/dalvik-cache ext4 rw,noatime,nodiratime,barrier=1,data=writeback,noauto_da_alloc 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/vold/179:1 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /storage/sdcard0/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

IMHO it should be the same, You are missing one line and have one more. /data/data. Must be that a2sd xdata thing.

dmesg and logcat are still under investigation...
[Desire General] Milos_SD:
Well, I'm not using a2sd xdata at all. I did enabled it ones, but I did full wipe few times after that.
[Desire General] ntn_labs:
You installed a2sd with yny?
[Desire General] Milos_SD:
No. I installed it with yyy. I ment that I never used this command: a2sd xdata.
[Desire General] ntn_labs:
I understood. That might be the difference between our phones. But I don't see why it's yours not working. Maybe those 2Gigs?
[Desire General] Milos_SD:
I don't believe that is the problem. There are few others here that have this problem too, and they use less then 2GB sd-ext partition. And like I sad, it worked great in all version before 4.6 (with every other version above that cause problems on my phone). I have 16GB sdcard, on a dev thread someone mention that could be the problem (but I don't see why would it be)?

If there is anything else I can do to help identify the problem, don't hasitate to say it. I will remain on v5.1 for now. :)

P.S. Until this is fixed, I will use kind of a workaround. I'll install v4.4 with full wipe, install my apps, and then install newest version with only dalvik+cache clean. :)
[Desire General] ntn_labs:
Sure, buy a 4gig card, like everyone else and try it with that ;)
[Desire General] aso1:
i have problem with wifi in miui rom .
[Desire General] ntn_labs:
Which miui ROM?
[Desire General] ntn_labs:
Installation error: "Symlink: Some symlinks failed" +fix

If You get errors when installing ROM that says "Symlink: Some symlinks failed" (among other things), make sure You have stock hboot.

Another option is to wipe all/reboot and try again.

And this might happen if You have USB cable in Your device, so remove it and try again.
[Desire General] ntn_labs:
Swap partition, yes or no?

If You ask Yourself if You need/want to use swap, the answer is no. First of all, Your Desire doesn't need it. And the second thing is, Your SD card might be destroyed by numerous RW operation that are basically the base of a swap partition. It's called sd card wearout.