Affichage des articles dont le libellé est GUIDEHOW. Afficher tous les articles
Affichage des articles dont le libellé est GUIDEHOW. Afficher tous les articles

lundi 2 février 2015

[Q&A] [Guide][How to Root Lollipop GT-I9500][5.0.1] topic






Q&A for [Guide][How to Root Lollipop GT-I9500][5.0.1]

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for [Guide][How to Root Lollipop GT-I9500][5.0.1]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)






vendredi 30 janvier 2015

[GUIDE]How to build CM12 for flamingo topic






Hello all, :)
since we have unofficial nightlies but we don't have any tutorial how can we build our own package, I've decided to make one.
ATTENTION: I am not responsible for any damage you may cause to your phone. I MAY be wrong on this guide.

This guide is useful for those who:
1.) Want to learn building basics and get a bit into android development
2.) Don't like waiting for another nightly (I assume not, they come quite often)
3.) Want to contribute to our community by making custom ROMs

Prerequisites
1.) Linux computer 64-bit (I will use Ubuntu as example)
2.) Reasonable hardware (at least 4 GB RAM)
3.) At least 50 GB of free space on disc
4.) Reliable internet connection
5.) Patience and a bit of intelligence :good:

Instructions
1.) Follow this guide up to "Initialize the CyanogenMod source repository" step (don't execute this step).
What it does? This will prepare all the build packages and set build environment.
Yes, I'm aware that it is for Xperia T, but it is pretty much the same.

2.) In the command window type

Code:


cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0


What it does? This will initialize empty repository in /android/system directory.

3.) Add local manifest for flamingo device

Code:


mkdir -p ~/android/system/.repo/local_manifests

Copy sony.xml (in zip atteched down the thread) to the directory above
What it does? This step assures you'll download device-specific repositories.

4.) Download the source code

Code:


repo sync

What it does? This will download every single repository of CM12 (about 25 GB), takes long time, depending on your internet.

5.) Get prebuilts

Code:


cd ~/android/system/vendor/cm
./get-prebuilts


What it does? Prepares some prebuilt apps (i.e. Terminal Emulator)

6.) Setup the build environment & prepare the device-specific code.

Code:


cd ~/android/system
. build/envsetup.sh
breakfast flamingo


What it does? This magic command sets up all needed commands and makefiles for build. See this page.

7.) Build

Code:


brunch flamingo

What it does? Simple - builds the CM. Speed depends on your hardware. Don't expect less than three hours for the first time.

Zip with kernel is ready in out/target/product/flamingo ready to install, congratulations :good:

If you have any questions, suggestions, errors, feel free to ask.














Attached Files





File Type: zip manifest.zip -
[Click for QR Code]
(301 Bytes)










lundi 26 janvier 2015

[Guide]How to reset pattern lock the most easy and safe way. topic






Boom!!!!!
Finally........



I've solved the problem of all these guys who forget their pattern again and again:p:p:p:p
.
.


I have created a flashable zip by which you can easily reset your lock pattern.....
.
No I'm not kidding ... Seriously :)
.
★THIS IS A MUST HAVE FILE TO PROTECT YOUR DATA .. MAY IT BE A DEVELOPER OR A NOOB



STEPS::
Download this zip :

Link 1 :: Please use this link to donate for free just by skipping an ad :):):):):):):):):):)http://adfoc.us/26452254337763
.
.
.
Link 2:: If u download via this link then u didn't respect my work :( :( :( :( :( :thumbdown::thumbdown:

goo.gl/OppYb4





★FLASH USING ANY CUSTOM RECOVERY...
★REBOOT..
★YOU WILL STILL SEE PATTERN DOTS THERE ...
★BUT DON'T PANIC ..
★JUST DRAW WHATEVER U WISH IT WILL ACCEPT...
★THANK ME.... ;) ;)


Quote:









★EVERYONE MUST KEEP THIS FILE AS A BACKUP TO RESET PATTERN WHENEVER YOU FORGET IT...
★EVERYONE MUST HIT THANKS :thumbup: ;) ;) ;) ;)
★None must misuse it ;)











dimanche 25 janvier 2015

[Guide]How to add custom local in localized device topic






Hello.

In this tutorial, I will try to explain how to add some language(s) in your phone when it's not implemented by the vendor (localized ROM).
I will not cover how to change the keyboard language (or layout) as there are a lot of free keyboards in the market with a lot of localizations. (In my case I need azerty French keyboard that is not implemented in my ROM).

I did it with KitKat (4.4.2) but should be ok with almost any version.

I'm French and living in Japan, I recently bought a Samsung Galaxy S4 who is restricted by Japanese vendor (DOCOMO) to only English, Japanese & Korean languages.
I've read a lot of things before I could add a language (French in my case) to system apps, and I could'nt find any good tutorial. Some people say you can't, some say you have to recompile your ROM :eek:, etc...
First, you could install something like "applocal2" for add your language in already translated apps, but of course, it will not work for the non-already translated apps (usually system apps).

As I'm new here, I coudn't post link, so google for them !

What you need :
In your device :
  • Your device must be rooted.

  • Root Browser or equivalent.

  • USB debugging turned on.

In your PC :
  • A Rom for your device with the language you want inside in the same version of Android. (Find it in sammobile.com site for Samsung devices).

  • sgs2toext4.jar. (Transform the system.img.ext4 from the extracted ROM to a readable format for the next tool)

  • ext2explorer. (Extract the files from the system.img.ext4)

  • Virtuous Ten Studio. (Don't have to present it !! The must have tool !!)

  • 7zip or equivalent.


What you have to know :
  • This is always dangerous to play with system files ! I'm not responsible if you broke your device !!

  • Always do a backup of the file you will modify ! I suggest you copy them on your PC and you keep them in the original folder with a modified name, as this you could maybe try to restore them via ADB if something is wrong.

  • You don't have to bother with the signature mode when recompiling system (only) apk (any of them are ok). But you should copy the "META-INF" folder & "AndroidManifest.xml" file from the original apk to the newly repacked apk. (First erase them from the newly created apk inside 7zip, then open the original apk with 7zip and copy and paste to the new apk).

  • When copying new apk from PC to device, first copy them in the /system/ folder, then change permission to 644 (rw-r--r--) before finally moving them to the original folder.


How it's work :
The principe, as you should understand, is to extract both your apks and the apks from the dowloaded ROM, copy the ressources in your language from it to your apks and then rebuild them.
In our case (at least mine :) ) these apks are in the folders :
  • /system/app/

  • /system/framework/

  • /system/priv-app/


Ok, here we GO !
  • 1st phase : extract the files from the downloaded ROM with the language you want.
    • Extract the ROM (.zip) with 7zip, and then extract again the resulting file (.tar.md5) with 7zip (you should have an error : don't care of it).

    • Open sgs2toext4.jar and past in it the file system.img.ext4. Wait it take time. It will produce a new file named : system.img.ext4.img

    • Open ext2explorer and choose open the previously created file. Then right click on it and save. Create a new folder (I named it sys), and press ok. Wait it take time.

    You now should have the /system/ directory extracted inside the sys directory with the apks who have your language in them.

  • 2nd phase : Find the apks you need to modify. This is actually the most harder part !
    There are a lot of apks in the 3 directories I say earlier. You don't have to translate all of them.
    The 1st one you should change is /system/framework/framework-res.apk. That give you the option of your language in the settings.
    • Launch VTS (Virtual Ten Studio) and click New Solution

    • Choose the file you want to open, then Import.

    • Project-Type must be Apk-Project.

    • Choose a Solution Name (for example Original_name_of_apk or Translated_name_of_apk), then Click Next.

    • Should be Basic Theming. Click Next.

    • Click Next.

    What I did is to open some of them one by one to see if there are localized languages in it.
    Here a non-exhaustive list of what I found :
    Some of them are the overlay by Samsung (TouchWizz), and some of them are Japanese version of app.
    Try to find yours (for example JContacts.apk could be SecContacts_OSup.apk in the downloaded ROM) by opening both versions and comparing the file /res/values/strings.xml.



    • /system/framework/twframework-res.apk

    • /system/framework/framework-res.apk

    • /system/priv-app/SystemUI.apk

    • /system/priv-app/Keyguard.apk

    • /system/priv-app/Jcontacts.apk

    • /system/priv-app/SecLauncher3.apk

    • /system/priv-app/SecPhone_JPN.apk

    • /system/priv-app/SecSafetyAssurance.apk

    • /system/priv-app/SecSettings.apk

    • /system/app/AccessControl.apk

    • /system/app/AssistantMenu.apk

    • /system/app/EasySettings.apk

    • /system/app/MultiWindowTrayService.apk

    • /system/app/SViewCoverService.apk




  • 3rd phase : Copy the language from one apk to another.
    Now you have found some apk to "translate", we must copy the /res/ folders we want from the decompiled apk of the ROM who contain your language to your original apk.
    Look in the /res/ folder in VTS and find the differents languages : they are /res/value-xx/ but you could have in some case /res/raw-xx & /res/xml-xx.
    Anyway,
    • Copy from the folder created by VTS all the directories who have the language you want (in Windows Seven it's : \Documents\Virtuous Ten Studio\Projects\Translated_name_of_apk\name_of_apk \Data\res) and copy them to the VTS directory of your original apk ( \Documents\Virtuous Ten Studio\Projects\Original_name_of_apk\name_of_apk\D ata\res).

    • In VTS, reopen or reload the original solution.

    • Click Build all in the top tab Home. Wait it finish.

    • Very important : As said before, open your original apk and the newly created apk ( \Documents\Virtuous Ten Studio\Projects\Original_name_of_apk\name_of_apk\B inary) with 7zip, and replace META-INF folder & AndroidManifest.xml file from the original one to the new one. This will sign your apk.

    • Copy the new apk on your device, and copy it in the /system/ folder.

    • Very important :Change permissions to 644 (rw-r--r--) with Root Browser in the device, and then move it to the original folder remplacing the original one.



That's it, now reboot, go settings, change language and see the changes !
I suggest you reboot after each change you made in case something goes wrong.

Notes :
  • In some case I had errors when decompiling apk. I had resolved that by remplacing the version of ApkTool in VTS by the last one (C:\Program Files (x86)\Virtuous Ten Studio\External\ApkTool) version apktool_2.0.0rc3.jar. Then remove the other 2.0.0 jar file.

  • In some case I couln't build the new apk because of errors in some layout files. I didn't manage to resolve that as the both ROM I have (mine and downloaded one) have the same issue.

  • If something goes wrong (but it shouldn't be), for example lot of messages "error xxx should close" just when you replace the apk before rebooting try to lanch an adb shell and to retrieve the original apk you had saved in the original dir by erasing the new one and rename the saved one. In some devices you have first to remount the system partion in rw as it's read only.







[Guide]How to add Lollipop Easter Egg in your Rom topic






Hey Guys, I am back with another guide and this time i will show you how to add Lollipop Easter Egg in your ROM.


Disclaimer: I and XDA are not responsible for the damage of your phone. Take necessary backup if you are indoubt.


Requirements:
  • framework.jar from your ROM

  • Know how to decompile APK

  • Easter Egg app attached below



Let's start


1. Decompile framework.jar

2. Go to smali/com/android/internal/app
and open PlatLogoActivity.smali

3. Select all and replace it with this code:



Code:


.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"


# direct methods
.method public constructor <init>()V
.registers 1

.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()V

return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/BundleV
.registers 7
.parameter "savedInstanceState"

.prologue
.line 16
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/BundleV

.line 18
new-instance v1, Landroid/content/Intent;

const-string v2, "android.intent.action.MAIN"

invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/StringV

.line 19
.local v1, intent:Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;

const-string v3, "com.Droidbuster.droidbuster_LollipopEasterEgg"

const-string v4, "com.Droidbuster.droidbuster_LollipopEasterEgg.MainActivity"

invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/StringV

invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentNameLandroid/content/Intent;

.line 23
:try_start_16
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/IntentV
:try_end_19
.catch Landroid/content/ActivityNotFoundException; {:try_start_16 .. :try_end_19} :catch_1d

.line 39
:goto_19
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V

.line 41
return-void

.line 31
:catch_1d
move-exception v0

.line 35
.local v0, e:Landroid/content/ActivityNotFoundException;
const-string v2, "First install that app Droidbuster told you to!"

const/4 v3, 0x0

invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

move-result-object v2

invoke-virtual {v2}, Landroid/widget/Toast;->show()V

goto :goto_19
.end method


4. Recompile framework.jar
Push it into system/framework
Set correct permissions(rw-r--r--)



5. Install this app by me, it Contain important the Easter Egg code and that smali above redirects to it:



Download For GingerBread Platform Device: Idpi , Mdpi , Hdpi , Xdpi

Download For Ics+ Platform Device: Idpi , Mdpi , Hdpi , Xdpi

Note = Random Color Change Feature not work on 2.3 platform But on ICs + device its working Like a charm

XDA:DevDB Information
Droidbuster lollipop Easter Egg, Theme for the All Devices



Contributors
Droidbuster, m4rinko2, iamareebjamal, MuSaddiq

Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2015-01-25

Created 2015-01-25
Last Updated 2015-01-25