aszhokhin: (Lemon/2)
http://muzso.hu/2012/08/10/how-to-pack-and-unpack-system.img-and-userdata.img-from-an-android-factory-image

How to pack and unpack system.img and userdata.img from an Android factory image



  1. Download the https://android.googlesource.com/platform/system/extras repository:

  2. Check out a revision of your choice:
    cd extras
    git checkout android-4.1.1_r1

  3. Compile simg2img:
    cd ext4_utils
    gcc -o simg2img -lz sparse_crc32.c simg2img.c

  4. Unpack your Android image files:
    cd ../../
    ./extras/ext4_utils/simg2img system.img system.raw.img
    ./extras/ext4_utils/simg2img userdata.img userdata.raw.img

  5. Do whatever you want with the images (eg. you can use Paragon's ExtFS on a Mac or just simply mount the images in linux via the loop device).
    (Update, 2012.02.16: Paragon's ExtFS -or at least v8- does not work well. Sad It doesn't show all files that are in the ext4 image.)
    Eg.
    mkdir /mnt/my_system /mnt/my_userdata
    mount -t ext4 -o loop system.raw.img /mnt/my_system
    mount -t ext4 -o loop userdata.raw.img /mnt/my_userdata

  6. Compile make_ext4fs:
    cd extras/ext4_utils
    gcc -o make_ext4fs -lz make_ext4fs_main.c make_ext4fs.c ext4fixup.c ext4_utils.c allocate.c backed_block.c output_file.c contents.c extent.c indirect.c uuid.c sha1.c sparse_crc32.c wipe.c

  7. Repack the images:
    cd ../../
    PATH="$PATH:$(pwd)/extras/ext4_utils/make_ext4fs" ./extras/ext4_utils/mkuserimg.sh -s /mnt/my_system_dir my_system.img ext4 /tmp 512M

P.S.: if compiling stuff is not your thing, you can just download simg2img and make_ext4fs from here.
aszhokhin: (Lemon/2)

Таджики, живущие высоко в горах, отличаются от городских – они почти не смешались с другими этносами и сохранили те черты лица, которые были присущи их светлоглазым предкам. Это заметно не только на Памире, но в других высокогорных регионах. Например, кишлаки, расположенные в Фанских горах выше озера Искандеркуль. Они – как затерянные миры со своими жителями потрясающей красоты.

http://www.fergananews.com/articles/8891


Мальчик из высокогорного кишлака в Айнинском районе. Фото © Ниссор Абдуразаков
aszhokhin: (Lemon/2)

Mathematical Physics


Also found in: Acronyms, Wikipedia.


mathematical physics

[¦math·ə¦mad·ə·kəl ′fiz·iks]
(physics)
The study of the mathematical systems which represent physical phenomena; particular areas are, for example, quantum and statistical mechanics and field theory.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.


Mathematical physics

An area of science concerned with the application of mathematical concepts to the physical sciences and the development of mathematical ideas in response to the needs of physics. Historically, the concept of mathematical physics was synonymous with that of theoretical physics. In present-day terminology, however, a distinction is made between the two. Whereas most of theoretical physics uses a large amount of mathematics as a tool and as a language, mathematical physics places greater emphasis on mathematical rigor, and devotes attention to the development of areas of mathematics that are, or show promise to be, useful to physics. The results obtained by pure mathematicians, with no thought to applications, are almost always found to be both useful and effective in formulating physical theories.

Mathematical physics forms the bridge between physics as the description of nature and its structure on the one hand, and mathematics as a construction of pure logical thought on the other. This bridge between the two disciplines benefits and strengthens both fields enormously. See Physics, Theoretical physics

The methods employed in mathematical physics range over most of mathematics, the areas of analysis and algebra being the most commonly used. Partial differential equations and differential geometry, with heavy use of vector and tensor methods, are of particular importance in the formulation of field theories, and functional analysis as well as operator theory in quantum mechanics. Group theory has become an especially valuable tool in the construction of quantum field theories and in elementary-particle physics. There has also been an increase in the use of general geometrical approaches and of topology. For solution methods and the calculation of quantities that are amenable to experimental tests, of particular prominence are Fourier analysis, complex analysis, variational methods, the theory of integral equations, and perturbation theory. See Variational methods (physics), Vector methods (physics)

McGraw-Hill Concise Encyclopedia of Physics. © 2002 by The McGraw-Hill Companies, Inc.

aszhokhin: (Lemon/2)

Theoretical physics, mathematical physics and related areas

Research in theoretical physics and mathematical physics encompasses a wide range of subjects, including, but not limited to, classical and quantum field theory, gauge theory, classical and quantum gravity, string theory, condensed matter theory and statistical physics. A number of these examples are supported by both EPSRC and Science and Technology Facilities Council (STFC). For subjects supported by both councils, those projects driven by the mathematics or by physics within the EPSRC remit are supported by EPSRC, and those driven by the applications to particle physics and cosmology are supported by STFC.

No research project should fall between the remits of the Research Councils. Research proposals are assessed by each Research Council under its normal peer review process and evaluated against its priorities and strategy. Applicants seeking further clarification or guidance should contact EPSRC or STFC.

EPSRC supports research in both mathematical and theoretical physics.

The Physical sciences theme supports research in theoretical physics where the novelty of the research relates to physics within the EPSRC remit, ranging from projects with a purely theoretical perspective through to research working closely with experimentalists.

As theoretical physics underpins many areas of research, relevance may also be within other research EPSRC themes such as ICT or Energy, where the fundamental properties require a theoretical physics investigation.

The Mathematical Sciences theme supports research in theoretical physics with a strong mathematical or conceptual content, and in areas of mathematics suggested by questions in physics. Examples of activities supported include the study and development of:


  • Physical theories and mathematical models

  • The application of mathematical techniques to problems in theoretical physics

  • Mathematical structures arising in theoretical physics and their connections with other areas of mathematics

  • Abstract properties and principles of theoretical frameworks;

  • Foundations and rigorous treatments

  • Exact solutions, classifications and integrability

Applicants wishing to check whether their proposed research is within EPSRC’s remit should complete the remit query form and send it to EPSRC_Remit_Queries@epsrc.ac.uk.

STFC supports theoretical research in particle physics, particle cosmology, theoretical astronomy and cosmology, and areas related or relevant to these. Its theoretical activity includes:


  • Theoretical insight into physical phenomena

  • Development and study of theoretical frameworks

  • Development of models and theories with the aim of further enhancing or unifying our understanding of the physical world

  • Development of models and theories with the aim of further enhancing or unifying our understanding of the origin and development of the universe

  • Analysis and interpretation of data from experiments and observations; guidance for further experiments and observations

  • Development of calculational and computational techniques enabling more precise comparison of theory with experiment

Contacts

EPSRC Mathematical Sciences
EPSRC Physical Sciences
STFC









aszhokhin: (Lemon/2)

Un inconnu joue "Imagine" sur un piano mobile près du Bataclan


Attentats de Paris - François Hollande: "Un acte d'une barbarie absolue." Deuil national de 3 jours

aszhokhin: (Default)
4pda.ru/forum/index.php


Для создания натив приложения под андроид
нам понадобится NDK последней версии (у меня r5b) http://developer.android.com/sdk/ndk/index.html
и SDK вернее приложение adb http://developer.android.com/sdk/index.html
рутованный телефон

Все действия я проводил под ubuntu 10.10
и так распаковываем ndk
у меня в /root/android-ndk-r5b (сижу под рутом =) )
заходим в папку ndk/samples создаем директорию hellonative
для простоты копируем из hello-jni директорию jni в hellonative
и файл default.properties
в директории jni изменяем Android.mk таким образом
Код
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := hn
LOCAL_SRC_FILES := hellonative.c

include $(BUILD_EXECUTABLE)


си файл можно удалить и создать новый hellonative.c
в нем
Код
#include <stdio.h>

int main()
{
    printf("Hello Native\n");
    getchar();
}

все просто придумывать не будем, еще adb файл я скопировал в папку с проектом для удобства
Компилируем
открываем терминал на убунте (как на винде точно не знаю но компилируется так же как обычное нативное приложение)
выполняем
Код
# cd /root/android-ndk-r5b/samples/hellonative/
# ../../ndk-build
Install        : hn => libs/armeabi/hn

бин файл находится libs/armeabi/hn
выполняем следующие действия в терминале из папки проекта
Код
# adb shell
# su
# mkdir /data/tmp
# exit
# exit
# adb push /root/android-ndk-r5b/samples/hellonative/libs/armeabi/hn /data/tmp
56 KB/s (2368 bytes in 0.041s)
# adb shell
# chmod 744 /data/tmp/hn
# /data/tmp/hn
Hello Native


Вот и все

Мог где нибудь ошибиться, если что не понятно спрашивайте
aszhokhin: (Default)

www.pocketmagic.net/

Android C native development using the NDK under Windows

By Radu Motisan Posted on November 18th, 2010

A lot has changed since my previous article, on Android C native development, back in 2009.
The Android NDK has been released and the JNI development is not only possible, but also easy. Have a look on this article on the Android NDK.
The new challenge is to use the NDK to compile Native ARM-EABI executables that would run on an Android phone. I don't want to setup the complete Google Android source code as I did in my first article.

 

Read more... )
aszhokhin: (Default)

Building/Debugging Android Native C

Building/Debugging android native C applications

 
In this post I will explain how to compile, install and debug an Android native "C" application.
If you are reading this post just because you have googled the magic keywords ("android" + "native code") then you should know that there is an easier way to build native applications using android makefiles ("Android.mk" and "Application.mk").
The method I'm describing here is only useful if you want to understand how things work in order to create more complex standard GNU makefiles. This is also useful if you would like to create your own GNU autotools wrappers to compile projects using GNU configure.
I'm using Windows Vista as host machine but any other supported platforms (e.g. linux-x86 or darwin-x86) should work.
Read more... )
 
Page generated Jun. 17th, 2025 11:33 pm
Powered by Dreamwidth Studios
OSZAR »